Documentation ¶
Index ¶
- Variables
- func NewLoaderContext(ctx context.Context, watcher *watcher.Watcher[*Bucket]) context.Context
- func NewWatcher(ctx context.Context, mgr *watcher.Manager) *watcher.Watcher[*Bucket]
- func Search(ctx context.Context, q string) ([]*search.Result, error)
- type Bucket
- func (b *Bucket) DeepCopyObject() runtime.Object
- func (b *Bucket) GetLabels() map[string]string
- func (b *Bucket) GetName() string
- func (b *Bucket) GetNamespace() string
- func (b *Bucket) GetObjectKind() schema.ObjectKind
- func (b Bucket) ID() ident.Ident
- func (Bucket) IsNode()
- func (Bucket) IsPersistence()
- func (Bucket) IsSearchNode()
- type BucketConnection
- type BucketCors
- type BucketCorsConnection
- type BucketCorsEdge
- type BucketEdge
- type BucketError
- type BucketOrder
- type BucketOrderField
- type BucketState
- type BucketStatus
- type TeamInventoryCountBuckets
Constants ¶
This section is empty.
Variables ¶
View Source
var AllBucketState = []BucketState{ BucketStateHealthy, BucketStateError, BucketStateUnknown, }
View Source
var SortFilter = sortfilter.New[*Bucket, BucketOrderField, struct{}](BucketOrderFieldName)
Functions ¶
func NewLoaderContext ¶
func NewWatcher ¶
Types ¶
type Bucket ¶
type Bucket struct { Name string `json:"name"` CascadingDelete bool `json:"cascadingDelete"` PublicAccessPrevention string `json:"publicAccessPrevention"` UniformBucketLevelAccess bool `json:"uniformBucketLevelAccess"` Status *BucketStatus `json:"status"` Cors []*BucketCors `json:"-"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` WorkloadReference *workload.Reference `json:"-"` ProjectID string `json:"-"` }
func (*Bucket) DeepCopyObject ¶
func (*Bucket) GetNamespace ¶
func (*Bucket) GetObjectKind ¶
func (b *Bucket) GetObjectKind() schema.ObjectKind
func (Bucket) IsPersistence ¶
func (Bucket) IsPersistence()
func (Bucket) IsSearchNode ¶
func (Bucket) IsSearchNode()
type BucketConnection ¶
type BucketConnection = pagination.Connection[*Bucket]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *BucketOrder) (*BucketConnection, error)
func ListForWorkload ¶
func ListForWorkload(ctx context.Context, teamSlug slug.Slug, references []nais_io_v1.CloudStorageBucket, orderBy *BucketOrder) (*BucketConnection, error)
type BucketCors ¶
type BucketCorsConnection ¶
type BucketCorsConnection = pagination.Connection[*BucketCors]
type BucketCorsEdge ¶
type BucketCorsEdge = pagination.Edge[*BucketCors]
type BucketEdge ¶
type BucketEdge = pagination.Edge[*Bucket]
type BucketError ¶
type BucketOrder ¶
type BucketOrder struct { Field BucketOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type BucketOrderField ¶
type BucketOrderField string
const ( BucketOrderFieldName BucketOrderField = "NAME" BucketOrderFieldEnvironment BucketOrderField = "ENVIRONMENT" )
func (BucketOrderField) IsValid ¶
func (e BucketOrderField) IsValid() bool
func (BucketOrderField) MarshalGQL ¶
func (e BucketOrderField) MarshalGQL(w io.Writer)
func (BucketOrderField) String ¶
func (e BucketOrderField) String() string
func (*BucketOrderField) UnmarshalGQL ¶
func (e *BucketOrderField) UnmarshalGQL(v interface{}) error
type BucketState ¶
type BucketState string
const ( BucketStateHealthy BucketState = "HEALTHY" BucketStateError BucketState = "ERROR" BucketStateUnknown BucketState = "UNKNOWN" )
func (BucketState) IsValid ¶
func (e BucketState) IsValid() bool
func (BucketState) MarshalGQL ¶
func (e BucketState) MarshalGQL(w io.Writer)
func (BucketState) String ¶
func (e BucketState) String() string
func (*BucketState) UnmarshalGQL ¶
func (e *BucketState) UnmarshalGQL(v interface{}) error
type BucketStatus ¶
type BucketStatus struct { State BucketState `json:"state"` Errors []*BucketError `json:"errors"` }
type TeamInventoryCountBuckets ¶
type TeamInventoryCountBuckets struct {
Total int
}
Click to show internal directories.
Click to hide internal directories.