Help us shape the future of Go! Take the 2026 Go Developer Survey

storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldCreateOBC

func ShouldCreateOBC(storageObj *v1alpha1.Storage) bool

func ShouldUseExternalConfig

func ShouldUseExternalConfig(storageObj *v1alpha1.Storage) bool

Types

type Claimer

type Claimer struct {
	// contains filtered or unexported fields
}

func NewClaimer

func NewClaimer(client client.Client) *Claimer

func (*Claimer) CreateClaim

func (c *Claimer) CreateClaim(ctx context.Context, device *v1alpha1.EdgeDevice) (*obv1.ObjectBucketClaim, error)

func (*Claimer) GetClaim

func (c *Claimer) GetClaim(ctx context.Context, name string, namespace string) (*obv1.ObjectBucketClaim, error)

func (*Claimer) GetExternalStorageConfig

func (c *Claimer) GetExternalStorageConfig(ctx context.Context, namespace string, storageConfig *v1alpha1.Storage) (*models.S3StorageConfiguration, error)

func (*Claimer) GetStorageConfiguration

func (c *Claimer) GetStorageConfiguration(ctx context.Context, device *v1alpha1.EdgeDevice) (*models.S3StorageConfiguration, error)

Jump to

Keyboard shortcuts

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