Documentation ¶
Index ¶
- func NewBucketCommand(banzaiCli cli.Cli) *cobra.Command
- func NewCreateCommand(banzaiCli cli.Cli) *cobra.Command
- func NewDeleteCommand(banzaiCli cli.Cli) *cobra.Command
- func NewGetCommand(banzaiCli cli.Cli) *cobra.Command
- func NewListCommand(banzaiCli cli.Cli) *cobra.Command
- type Bucket
- func ConvertBucketInfoToBucket(bucket pipeline.BucketInfo) Bucket
- func ConvertBucketInfoToBuckets(bucketInfos []pipeline.BucketInfo) []Bucket
- func GetManagedBucket(banzaiCli cli.Cli, orgID int32, name, cloud, location, storageAccount string) (bool, Bucket, error)
- func GetManagedBuckets(banzaiCli cli.Cli, orgID int32, cloud, location string) ([]Bucket, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBucketCommand ¶
NewBucketCommand returns a cobra command for `bucket` subcommands.
func NewCreateCommand ¶
NewCreateCommand creates a new cobra.Command for `banzai bucket create`.
func NewDeleteCommand ¶
NewDeleteCommand creates a new cobra.Command for `banzai bucket delete`.
func NewGetCommand ¶
NewGetCommand creates a new cobra.Command for `banzai bucket get`.
Types ¶
type Bucket ¶
type Bucket struct { // the name of the object storage / bucket Name string `json:"name"` // true if the bucket has been created via pipeline Managed bool `json:"managed"` // cloud provider where the bucket resides Cloud string `json:"cloud"` // location where the bucket resides Location string `json:"location"` // notes for the bucket Notes string `json:"notes,omitempty" yaml:"notes,omitempty"` // the status of the bucket Status string `json:"status"` // the reason for the error status StatusMessage string `json:"statusMessage,omitempty" yaml:"statusMessage,omitempty"` // Azure property StorageAccount string `json:"storageAccount,omitempty" yaml:"storageAccount,omitempty"` // Azure property ResourceGroup string `json:"resourceGroup,omitempty" yaml:"resourceGroup,omitempty"` // contains filtered or unexported fields }
Bucket describes an object store bucket managed by Pipeline
func ConvertBucketInfoToBucket ¶
func ConvertBucketInfoToBucket(bucket pipeline.BucketInfo) Bucket
ConvertBucketInfoToBucket converts pipeline.BucketInfo to Bucket
func ConvertBucketInfoToBuckets ¶
func ConvertBucketInfoToBuckets(bucketInfos []pipeline.BucketInfo) []Bucket
ConvertBucketInfoToBuckets converts an array of []pipeline.BucketInfo to []Bucket
func GetManagedBucket ¶
func GetManagedBucket(banzaiCli cli.Cli, orgID int32, name, cloud, location, storageAccount string) (bool, Bucket, error)
GetManagedBucket gets a managed bucket from Pipeline
func GetManagedBuckets ¶
GetManagedBuckets gets managed buckets from Pipeline
func (Bucket) GetNameForSelection ¶
GetNameForSelection gets a specially formatted name for interactive bucket selection