Documentation ¶
Index ¶
- Variables
- func NewLoaderContext(ctx context.Context, redisWatcher *watcher.Watcher[*RedisInstance]) context.Context
- func NewWatcher(ctx context.Context, mgr *watcher.Manager) *watcher.Watcher[*RedisInstance]
- func Search(ctx context.Context, q string) ([]*search.Result, error)
- type RedisInstance
- func (r *RedisInstance) DeepCopyObject() runtime.Object
- func (r *RedisInstance) GetLabels() map[string]string
- func (r *RedisInstance) GetName() string
- func (r *RedisInstance) GetNamespace() string
- func (r *RedisInstance) GetObjectKind() schema.ObjectKind
- func (r RedisInstance) ID() ident.Ident
- func (RedisInstance) IsNode()
- func (RedisInstance) IsPersistence()
- func (RedisInstance) IsSearchNode()
- type RedisInstanceAccess
- type RedisInstanceAccessConnection
- type RedisInstanceAccessEdge
- type RedisInstanceAccessOrder
- type RedisInstanceAccessOrderField
- type RedisInstanceConnection
- type RedisInstanceEdge
- type RedisInstanceOrder
- type RedisInstanceOrderField
- type RedisInstanceStatus
- type TeamInventoryCountRedisInstances
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortFilterRedisInstance = sortfilter.New[*RedisInstance, RedisInstanceOrderField, struct{}](RedisInstanceOrderFieldName) SortFilterRedisInstanceAccess = sortfilter.New[*RedisInstanceAccess, RedisInstanceAccessOrderField, struct{}](RedisInstanceAccessOrderFieldAccess) )
View Source
var AllRedisInstanceAccessOrderField = []RedisInstanceAccessOrderField{ RedisInstanceAccessOrderFieldAccess, RedisInstanceAccessOrderFieldWorkload, }
Functions ¶
func NewLoaderContext ¶
func NewWatcher ¶
Types ¶
type RedisInstance ¶
type RedisInstance struct { Name string `json:"name"` Status *RedisInstanceStatus `json:"status"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` WorkloadReference *workload.Reference `json:"-"` }
func GetByIdent ¶
func ListAllForTeam ¶
func ListAllForTeam(ctx context.Context, teamSlug slug.Slug) []*RedisInstance
func (*RedisInstance) DeepCopyObject ¶
func (r *RedisInstance) DeepCopyObject() runtime.Object
func (*RedisInstance) GetLabels ¶
func (r *RedisInstance) GetLabels() map[string]string
func (*RedisInstance) GetName ¶
func (r *RedisInstance) GetName() string
func (*RedisInstance) GetNamespace ¶
func (r *RedisInstance) GetNamespace() string
func (*RedisInstance) GetObjectKind ¶
func (r *RedisInstance) GetObjectKind() schema.ObjectKind
func (RedisInstance) ID ¶
func (r RedisInstance) ID() ident.Ident
func (RedisInstance) IsNode ¶
func (RedisInstance) IsNode()
func (RedisInstance) IsPersistence ¶
func (RedisInstance) IsPersistence()
func (RedisInstance) IsSearchNode ¶
func (RedisInstance) IsSearchNode()
type RedisInstanceAccess ¶
type RedisInstanceAccessConnection ¶
type RedisInstanceAccessConnection = pagination.Connection[*RedisInstanceAccess]
func ListAccess ¶
func ListAccess(ctx context.Context, redis *RedisInstance, page *pagination.Pagination, orderBy *RedisInstanceAccessOrder) (*RedisInstanceAccessConnection, error)
type RedisInstanceAccessEdge ¶
type RedisInstanceAccessEdge = pagination.Edge[*RedisInstanceAccess]
type RedisInstanceAccessOrder ¶
type RedisInstanceAccessOrder struct { Field RedisInstanceAccessOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type RedisInstanceAccessOrderField ¶
type RedisInstanceAccessOrderField string
const ( RedisInstanceAccessOrderFieldAccess RedisInstanceAccessOrderField = "ACCESS" RedisInstanceAccessOrderFieldWorkload RedisInstanceAccessOrderField = "WORKLOAD" )
func (RedisInstanceAccessOrderField) IsValid ¶
func (e RedisInstanceAccessOrderField) IsValid() bool
func (RedisInstanceAccessOrderField) MarshalGQL ¶
func (e RedisInstanceAccessOrderField) MarshalGQL(w io.Writer)
func (RedisInstanceAccessOrderField) String ¶
func (e RedisInstanceAccessOrderField) String() string
func (*RedisInstanceAccessOrderField) UnmarshalGQL ¶
func (e *RedisInstanceAccessOrderField) UnmarshalGQL(v interface{}) error
type RedisInstanceConnection ¶
type RedisInstanceConnection = pagination.Connection[*RedisInstance]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *RedisInstanceOrder) (*RedisInstanceConnection, error)
func ListForWorkload ¶
func ListForWorkload(ctx context.Context, teamSlug slug.Slug, references []nais_io_v1.Redis, orderBy *RedisInstanceOrder) (*RedisInstanceConnection, error)
type RedisInstanceEdge ¶
type RedisInstanceEdge = pagination.Edge[*RedisInstance]
type RedisInstanceOrder ¶
type RedisInstanceOrder struct { Field RedisInstanceOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type RedisInstanceOrderField ¶
type RedisInstanceOrderField string
const ( RedisInstanceOrderFieldName RedisInstanceOrderField = "NAME" RedisInstanceOrderFieldEnvironment RedisInstanceOrderField = "ENVIRONMENT" )
func (RedisInstanceOrderField) IsValid ¶
func (e RedisInstanceOrderField) IsValid() bool
func (RedisInstanceOrderField) MarshalGQL ¶
func (e RedisInstanceOrderField) MarshalGQL(w io.Writer)
func (RedisInstanceOrderField) String ¶
func (e RedisInstanceOrderField) String() string
func (*RedisInstanceOrderField) UnmarshalGQL ¶
func (e *RedisInstanceOrderField) UnmarshalGQL(v interface{}) error
type RedisInstanceStatus ¶
type TeamInventoryCountRedisInstances ¶
type TeamInventoryCountRedisInstances struct {
Total int
}
Click to show internal directories.
Click to hide internal directories.