redis

package
v0.0.0-...-f8970bf Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewLoaderContext

func NewLoaderContext(ctx context.Context, redisWatcher *watcher.Watcher[*RedisInstance]) context.Context

func NewWatcher

func NewWatcher(ctx context.Context, mgr *watcher.Manager) *watcher.Watcher[*RedisInstance]
func Search(ctx context.Context, q string) ([]*search.Result, error)

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 Get

func Get(ctx context.Context, teamSlug slug.Slug, environment, name string) (*RedisInstance, error)

func GetByIdent

func GetByIdent(ctx context.Context, id ident.Ident) (*RedisInstance, error)

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 RedisInstanceAccess struct {
	Access            string              `json:"access"`
	TeamSlug          slug.Slug           `json:"-"`
	EnvironmentName   string              `json:"-"`
	WorkloadReference *workload.Reference `json:"-"`
}

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 (*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 RedisInstanceStatus struct {
	State      string             `json:"state"`
	Conditions []metav1.Condition `json:"conditions"`
}

type TeamInventoryCountRedisInstances

type TeamInventoryCountRedisInstances struct {
	Total int
}

Jump to

Keyboard shortcuts

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