bucket

package
v0.0.0-...-8684de4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBucketCommand

func NewBucketCommand(banzaiCli cli.Cli) *cobra.Command

NewBucketCommand returns a cobra command for `bucket` subcommands.

func NewCreateCommand

func NewCreateCommand(banzaiCli cli.Cli) *cobra.Command

NewCreateCommand creates a new cobra.Command for `banzai bucket create`.

func NewDeleteCommand

func NewDeleteCommand(banzaiCli cli.Cli) *cobra.Command

NewDeleteCommand creates a new cobra.Command for `banzai bucket delete`.

func NewGetCommand

func NewGetCommand(banzaiCli cli.Cli) *cobra.Command

NewGetCommand creates a new cobra.Command for `banzai bucket get`.

func NewListCommand

func NewListCommand(banzaiCli cli.Cli) *cobra.Command

NewListCommand creates a new cobra.Command for `banzai bucket list`.

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

func GetManagedBuckets(banzaiCli cli.Cli, orgID int32, cloud, location string) ([]Bucket, error)

GetManagedBuckets gets managed buckets from Pipeline

func (Bucket) GetNameForSelection

func (bucket Bucket) GetNameForSelection() string

GetNameForSelection gets a specially formatted name for interactive bucket selection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL