Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 381 for strconv (0.21 sec)

  1. cmd/erasure-metadata_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"strconv"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    )
    
    const ActualSize = 1000
    
    // Test FileInfo.AddObjectPart()
    func TestAddObjectPart(t *testing.T) {
    	testCases := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. cmd/ftp-server.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"fmt"
    	"net"
    	"strconv"
    	"strings"
    
    	"github.com/minio/minio/internal/logger"
    	ftp "goftp.io/server/v2"
    )
    
    var globalRemoteFTPClientTransport = NewRemoteTargetHTTPTransport(true)()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 4.8K bytes
    - Viewed (2)
  3. internal/s3select/message.go

    	payload := []byte(`<?xml version="1.0" encoding="UTF-8"?><Progress><BytesScanned>` +
    		strconv.FormatInt(bytesScanned, 10) + `</BytesScanned><BytesProcessed>` +
    		strconv.FormatInt(bytesProcessed, 10) + `</BytesProcessed><BytesReturned>` +
    		strconv.FormatInt(bytesReturned, 10) + `</BytesReturned></Stats>`)
    	return genMessage(progressHeader, payload)
    }
    
    // Refer genStatsHeader().
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  4. internal/logger/target/console/console.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package console
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"strconv"
    	"strings"
    
    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/logger/message/log"
    )
    
    // Target implements loggerTarget to send log
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. tests/preload_test.go

    }
    
    func TestNestedPreloadWithUnscoped(t *testing.T) {
    	user := *GetUser("nested_preload", Config{Pets: 1})
    	pet := user.Pets[0]
    	pet.Toy = Toy{Name: "toy_nested_preload_" + strconv.Itoa(1)}
    	pet.Toy = Toy{Name: "toy_nested_preload_" + strconv.Itoa(2)}
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	var user2 User
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  6. internal/s3select/sql/funceval.go

    func intCast(v *Value) (int64, error) {
    	// This conversion truncates floating point numbers to
    	// integer.
    	strToInt := func(s string) (int64, bool) {
    		i, errI := strconv.ParseInt(s, 10, 64)
    		if errI == nil {
    			return i, true
    		}
    		f, errF := strconv.ParseFloat(s, 64)
    		if errF == nil {
    			return int64(f), true
    		}
    		return 0, false
    	}
    
    	switch x := v.value.(type) {
    	case float64:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers-pools.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"net/http"
    	"strconv"
    	"strings"
    
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/env"
    	"github.com/minio/pkg/v2/policy"
    )
    
    var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/clusters/clusters.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package clusters
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"sort"
    	"strconv"
    	"strings"
    	"text/tabwriter"
    
    	admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3"
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	"sigs.k8s.io/yaml"
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/input.go

    	if tok != scanner.Int {
    		in.expectText("expected line number after #line")
    	}
    	line, err := strconv.Atoi(in.Stack.Text())
    	if err != nil {
    		in.Error("error parsing #line (cannot happen):", err)
    	}
    	tok = in.Stack.Next()
    	if tok != scanner.String {
    		in.expectText("expected file name in #line")
    	}
    	file, err := strconv.Unquote(in.Stack.Text())
    	if err != nil {
    		in.Error("unquoting #line file name: ", err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  10. internal/logger/audit.go

    		entry.API.InputBytes = r.ContentLength
    		entry.API.OutputBytes = outputBytes
    		entry.API.HeaderBytes = headerBytes
    		entry.API.TimeToResponse = strconv.FormatInt(timeToResponse.Nanoseconds(), 10) + "ns"
    		entry.API.TimeToResponseInNS = strconv.FormatInt(timeToResponse.Nanoseconds(), 10)
    		// We hold the lock, so we cannot call reqInfo.GetTagsMap().
    		tags := make(map[string]interface{}, len(reqInfo.tags))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top