backendstore

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendStore

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

BackendStore stores the active s3 backends.

func NewBackendStore

func NewBackendStore() *BackendStore

func (*BackendStore) AddOrUpdateBackend

func (b *BackendStore) AddOrUpdateBackend(backendName string, s3C S3Client, stsC STSClient, active bool, health v1alpha1.HealthStatus)

func (*BackendStore) BackendsAreStored

func (b *BackendStore) BackendsAreStored() bool

func (*BackendStore) DeleteBackend

func (b *BackendStore) DeleteBackend(backendName string)

func (*BackendStore) GetActiveBackends added in v0.0.7

func (b *BackendStore) GetActiveBackends(beNames []string) s3Backends

func (*BackendStore) GetAllBackendNames added in v0.0.40

func (b *BackendStore) GetAllBackendNames(activeBackendsOnly bool) []string

func (*BackendStore) GetAllBackendS3Clients added in v0.0.35

func (b *BackendStore) GetAllBackendS3Clients() []S3Client

func (*BackendStore) GetAllBackends

func (b *BackendStore) GetAllBackends() s3Backends

func (*BackendStore) GetBackend

func (b *BackendStore) GetBackend(backendName string) *backend

func (*BackendStore) GetBackendHealthStatus added in v0.0.9

func (b *BackendStore) GetBackendHealthStatus(backendName string) v1alpha1.HealthStatus

func (*BackendStore) GetBackendS3Client added in v0.0.35

func (b *BackendStore) GetBackendS3Client(backendName string) S3Client

func (*BackendStore) GetBackendS3Clients added in v0.0.35

func (b *BackendStore) GetBackendS3Clients(beNames []string) map[string]S3Client

func (*BackendStore) GetBackendSTSClient added in v0.0.35

func (b *BackendStore) GetBackendSTSClient(backendName string) STSClient

func (*BackendStore) IsBackendActive added in v0.0.5

func (b *BackendStore) IsBackendActive(backendName string) bool

func (*BackendStore) SetBackendHealthStatus added in v0.0.9

func (b *BackendStore) SetBackendHealthStatus(backendName string, health v1alpha1.HealthStatus)

func (*BackendStore) ToggleBackendActiveStatus added in v0.0.5

func (b *BackendStore) ToggleBackendActiveStatus(backendName string, active bool)

type STSClient added in v0.0.35

type STSClient interface {
	AssumeRole(context.Context, *sts.AssumeRoleInput, ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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