Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for asString (0.19 sec)

  1. internal/bucket/lifecycle/action_string.go

    var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 150, 182, 193}
    
    func (i Action) String() string {
    	if i < 0 || i >= Action(len(_Action_index)-1) {
    		return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _Action_name[_Action_index[i]:_Action_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. utils/utils.go

    // NestedRelationName nested relationships like `Manager__Company`
    func NestedRelationName(prefix, name string) string {
    	return prefix + nestedRelationSplit + name
    }
    
    // SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`
    func SplitNestedRelationName(name string) []string {
    	return strings.Split(name, nestedRelationSplit)
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    func getListBucketURL(endPoint string) string {
    	return makeTestTargetURL(endPoint, "", "", url.Values{})
    }
    
    // return URL for HEAD on the bucket.
    func getHEADBucketURL(endPoint, bucketName string) string {
    	return makeTestTargetURL(endPoint, bucketName, "", url.Values{})
    }
    
    // return URL for deleting the bucket.
    func getDeleteBucketURL(endPoint, bucketName string) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/sftp-server.go

    						Extensions: make(map[string]string),
    					}, nil
    				}
    				if subtle.ConstantTimeCompare([]byte(sa.Credentials.SecretKey), pass) == 1 {
    					return &ssh.Permissions{
    						CriticalOptions: map[string]string{
    							"accessKey": c.User(),
    						},
    						Extensions: make(map[string]string),
    					}, nil
    				}
    				return nil, errAuthentication
    			}
    
    			ui, ok := globalIAMSys.GetUser(context.Background(), c.User())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. cmd/metrics-resource.go

    }
    
    func getResourceKey(name MetricName, labels map[string]string) string {
    	// labels are used to uniquely identify a metric
    	// e.g. reads_per_sec_{drive} inside the map
    	sfx := ""
    	for _, v := range labels {
    		if len(sfx) > 0 {
    			sfx += "_"
    		}
    		sfx += v
    	}
    
    	return string(name) + "_" + sfx
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    	}
    	info.BucketStats = make(map[string]map[string]madmin.SRBucketStatsSummary, len(sinfo.Sites))
    	info.PolicyStats = make(map[string]map[string]madmin.SRPolicyStatsSummary)
    	info.UserStats = make(map[string]map[string]madmin.SRUserStatsSummary)
    	info.GroupStats = make(map[string]map[string]madmin.SRGroupStatsSummary)
    	info.ILMExpiryStats = make(map[string]map[string]madmin.SRILMExpiryStatsSummary)
    	numSites := len(info.Sites)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  7. migrator/migrator.go

    		*gorm.Statement
    		Depends []*schema.Schema
    	}
    
    	var (
    		modelNames, orderedModelNames []string
    		orderedModelNamesMap          = map[string]bool{}
    		parsedSchemas                 = map[*schema.Schema]bool{}
    		valuesMap                     = map[string]Dependency{}
    		insertIntoOrderedList         func(name string)
    		parseDependence               func(value interface{}, addToList bool)
    	)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  8. cmd/metrics-v3-handler.go

    type metricDisplay struct {
    	Name   string   `json:"name"`
    	Help   string   `json:"help"`
    	Type   string   `json:"type"`
    	Labels []string `json:"labels"`
    }
    
    func (md metricDisplay) String() string {
    	return fmt.Sprintf("Name: %s\nType: %s\nHelp: %s\nLabels: {%s}\n", md.Name, md.Type, md.Help, strings.Join(md.Labels, ","))
    }
    
    func (md metricDisplay) TableRow() string {
    	labels := strings.Join(md.Labels, ",")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	"strings"
    
    	"sigs.k8s.io/yaml"
    )
    
    // WorkloadFilter is used to pass filter information into workload based config writer print functions
    type WorkloadFilter struct {
    	Address   string
    	Node      string
    	Verbose   bool
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *WorkloadFilter) Verify(workload *ZtunnelWorkload) bool {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. cmd/bucket-replication.go

    func filterReplicationStatusMetadata(metadata map[string]string) map[string]string {
    	// Copy on write
    	dst := metadata
    	var copied bool
    	delKey := func(key string) {
    		if _, ok := metadata[key]; !ok {
    			return
    		}
    		if !copied {
    			dst = make(map[string]string, len(metadata))
    			for k, v := range metadata {
    				dst[k] = v
    			}
    			copied = true
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top