Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for creation (0.18 sec)

  1. cmd/xl-storage_unix_test.go

    	"os"
    	"path"
    	"syscall"
    	"testing"
    )
    
    // Based on `man getumask` a vaporware GNU extension to glibc.
    // returns file mode creation mask.
    func getUmask() int {
    	mask := syscall.Umask(0)
    	syscall.Umask(mask)
    	return mask
    }
    
    // Tests if the directory and file creations happen with proper umask.
    func TestIsValidUmaskVol(t *testing.T) {
    	tmpPath := t.TempDir()
    	testCases := []struct {
    		volName       string
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  2. operator/cmd/mesh/operator-init.go

    	// inFilenames is the path to the input IstioOperator CR.
    	inFilename string
    
    	// common is shared operator args
    	common operatorCommonArgs
    }
    
    // kubeClients is a unit test override variable for client interfaces creation.
    var kubeClients = KubernetesClients
    
    func addOperatorInitFlags(cmd *cobra.Command, args *operatorInitArgs) {
    	hub, tag := buildversion.DockerInfo.Hub, buildversion.DockerInfo.Tag
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/tag.go

    	cmd := &cobra.Command{
    		Use:   "tag",
    		Short: "Command group used to interact with revision tags",
    		Long: `Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases
    referring to control plane revisions for sidecar injection.
    
    With revision tags, rather than relabeling a namespace from "istio.io/rev=revision-a" to "istio.io/rev=revision-b" to
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. internal/grid/manager.go

    	ID uuid.UUID
    
    	// Immutable after creation, so no locks.
    	targets map[string]*Connection
    
    	// serverside handlers.
    	handlers handlers
    
    	// local host name.
    	local string
    
    	// Validate incoming requests.
    	authRequest func(r *http.Request) error
    }
    
    // ManagerOptions are options for creating a new grid manager.
    type ManagerOptions struct {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. internal/event/target/postgresql.go

    		// FIXME: log returned error. ignore time being.
    		_ = target.insertStmt.Close()
    	}
    
    	if target.db != nil {
    		target.db.Close()
    	}
    
    	return nil
    }
    
    // Executes the table creation statements.
    func (target *PostgreSQLTarget) executeStmts() error {
    	_, err := target.db.Exec(fmt.Sprintf(psqlTableExists, target.args.Table))
    	if err != nil {
    		createStmt := psqlCreateNamespaceTable
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  6. cmd/event-notification.go

    				continue
    			}
    			newEvent.S3.Object.UserMetadata[k] = v
    		}
    	}
    
    	return newEvent
    }
    
    func sendEvent(args eventArgs) {
    	// avoid generating a notification for REPLICA creation event.
    	if _, ok := args.ReqParams[xhttp.MinIOSourceReplicationRequest]; ok {
    		return
    	}
    
    	args.Object.Size, _ = args.Object.GetActualSize()
    
    	// remove sensitive encryption entries in metadata.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. internal/event/target/mysql.go

    		// FIXME: log returned error. ignore time being.
    		_ = target.insertStmt.Close()
    	}
    
    	if target.db != nil {
    		return target.db.Close()
    	}
    
    	return nil
    }
    
    // Executes the table creation statements.
    func (target *MySQLTarget) executeStmts() error {
    	_, err := target.db.Exec(fmt.Sprintf(mysqlTableExists, target.args.Table))
    	if err != nil {
    		createStmt := mysqlCreateNamespaceTable
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. cmd/bucket-metadata-sys.go

    	}
    	if meta.sseConfig == nil {
    		return nil, time.Time{}, BucketSSEConfigNotFound{Bucket: bucket}
    	}
    	return meta.sseConfig, meta.EncryptionConfigUpdatedAt, nil
    }
    
    // CreatedAt returns the time of creation of bucket
    func (sys *BucketMetadataSys) CreatedAt(bucket string) (time.Time, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    		return time.Time{}, err
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  9. cmd/bucket-metadata.go

    	return b.LockEnabled || (b.objectLockConfig != nil && b.objectLockConfig.Enabled())
    }
    
    // SetCreatedAt preserves the CreatedAt time for bucket across sites in site replication. It defaults to
    // creation time of bucket on this cluster in all other cases.
    func (b *BucketMetadata) SetCreatedAt(createdAt time.Time) {
    	if b.Created.IsZero() {
    		b.Created = UTCNow()
    	}
    	if !createdAt.IsZero() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users_test.go

    	invalidPolicyBytes := policyBytes[:len(policyBytes)-1]
    	err = s.adm.AddCannedPolicy(ctx, policy1+"invalid", invalidPolicyBytes)
    	if err == nil {
    		c.Fatalf("invalid policy creation success")
    	}
    
    	// 3. Create a user, associate policy and verify access
    	accessKey, secretKey := mustGenerateCredentials(c)
    	err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
Back to top