Documentation ¶
Index ¶
- Variables
- func NewLoaderContext(ctx context.Context, watcher *watcher.Watcher[*OpenSearch]) context.Context
- func NewWatcher(ctx context.Context, mgr *watcher.Manager) *watcher.Watcher[*OpenSearch]
- func Search(ctx context.Context, q string) ([]*search.Result, error)
- type OpenSearch
- func Get(ctx context.Context, teamSlug slug.Slug, environment, name string) (*OpenSearch, error)
- func GetByIdent(ctx context.Context, id ident.Ident) (*OpenSearch, error)
- func GetForWorkload(ctx context.Context, teamSlug slug.Slug, environment string, ...) (*OpenSearch, error)
- func ListAllForTeam(ctx context.Context, teamSlug slug.Slug) []*OpenSearch
- func (r *OpenSearch) DeepCopyObject() runtime.Object
- func (r *OpenSearch) GetLabels() map[string]string
- func (r *OpenSearch) GetName() string
- func (r *OpenSearch) GetNamespace() string
- func (r *OpenSearch) GetObjectKind() schema.ObjectKind
- func (o OpenSearch) ID() ident.Ident
- func (OpenSearch) IsNode()
- func (OpenSearch) IsPersistence()
- func (OpenSearch) IsSearchNode()
- type OpenSearchAccess
- type OpenSearchAccessConnection
- type OpenSearchAccessEdge
- type OpenSearchAccessOrder
- type OpenSearchAccessOrderField
- type OpenSearchConnection
- type OpenSearchEdge
- type OpenSearchOrder
- type OpenSearchOrderField
- type OpenSearchStatus
- type TeamInventoryCountOpenSearchInstances
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortFilterOpenSearch = sortfilter.New[*OpenSearch, OpenSearchOrderField, struct{}](OpenSearchOrderFieldName) SortFilterOpenSearchAccess = sortfilter.New[*OpenSearchAccess, OpenSearchAccessOrderField, struct{}](OpenSearchAccessOrderFieldAccess) )
Functions ¶
func NewLoaderContext ¶
func NewWatcher ¶
Types ¶
type OpenSearch ¶
type OpenSearch struct { Name string `json:"name"` Status *OpenSearchStatus `json:"status"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` WorkloadReference *workload.Reference `json:"-"` }
func GetByIdent ¶
func GetForWorkload ¶
func GetForWorkload(ctx context.Context, teamSlug slug.Slug, environment string, reference *nais_io_v1.OpenSearch) (*OpenSearch, error)
func ListAllForTeam ¶
func ListAllForTeam(ctx context.Context, teamSlug slug.Slug) []*OpenSearch
func (*OpenSearch) DeepCopyObject ¶
func (r *OpenSearch) DeepCopyObject() runtime.Object
func (*OpenSearch) GetLabels ¶
func (r *OpenSearch) GetLabels() map[string]string
func (*OpenSearch) GetName ¶
func (r *OpenSearch) GetName() string
func (*OpenSearch) GetNamespace ¶
func (r *OpenSearch) GetNamespace() string
func (*OpenSearch) GetObjectKind ¶
func (r *OpenSearch) GetObjectKind() schema.ObjectKind
func (OpenSearch) ID ¶
func (o OpenSearch) ID() ident.Ident
func (OpenSearch) IsNode ¶
func (OpenSearch) IsNode()
func (OpenSearch) IsPersistence ¶
func (OpenSearch) IsPersistence()
func (OpenSearch) IsSearchNode ¶
func (OpenSearch) IsSearchNode()
type OpenSearchAccess ¶
type OpenSearchAccessConnection ¶
type OpenSearchAccessConnection = pagination.Connection[*OpenSearchAccess]
func ListAccess ¶
func ListAccess(ctx context.Context, openSearch *OpenSearch, page *pagination.Pagination, orderBy *OpenSearchAccessOrder) (*OpenSearchAccessConnection, error)
type OpenSearchAccessEdge ¶
type OpenSearchAccessEdge = pagination.Edge[*OpenSearchAccess]
type OpenSearchAccessOrder ¶
type OpenSearchAccessOrder struct { Field OpenSearchAccessOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type OpenSearchAccessOrderField ¶
type OpenSearchAccessOrderField string
const ( OpenSearchAccessOrderFieldAccess OpenSearchAccessOrderField = "ACCESS" OpenSearchAccessOrderFieldWorkload OpenSearchAccessOrderField = "WORKLOAD" )
func (OpenSearchAccessOrderField) IsValid ¶
func (e OpenSearchAccessOrderField) IsValid() bool
func (OpenSearchAccessOrderField) MarshalGQL ¶
func (e OpenSearchAccessOrderField) MarshalGQL(w io.Writer)
func (OpenSearchAccessOrderField) String ¶
func (e OpenSearchAccessOrderField) String() string
func (*OpenSearchAccessOrderField) UnmarshalGQL ¶
func (e *OpenSearchAccessOrderField) UnmarshalGQL(v interface{}) error
type OpenSearchConnection ¶
type OpenSearchConnection = pagination.Connection[*OpenSearch]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination, orderBy *OpenSearchOrder) (*OpenSearchConnection, error)
type OpenSearchEdge ¶
type OpenSearchEdge = pagination.Edge[*OpenSearch]
type OpenSearchOrder ¶
type OpenSearchOrder struct { Field OpenSearchOrderField `json:"field"` Direction model.OrderDirection `json:"direction"` }
type OpenSearchOrderField ¶
type OpenSearchOrderField string
const ( OpenSearchOrderFieldName OpenSearchOrderField = "NAME" OpenSearchOrderFieldEnvironment OpenSearchOrderField = "ENVIRONMENT" )
func (OpenSearchOrderField) IsValid ¶
func (e OpenSearchOrderField) IsValid() bool
func (OpenSearchOrderField) MarshalGQL ¶
func (e OpenSearchOrderField) MarshalGQL(w io.Writer)
func (OpenSearchOrderField) String ¶
func (e OpenSearchOrderField) String() string
func (*OpenSearchOrderField) UnmarshalGQL ¶
func (e *OpenSearchOrderField) UnmarshalGQL(v interface{}) error
type OpenSearchStatus ¶
type TeamInventoryCountOpenSearchInstances ¶
type TeamInventoryCountOpenSearchInstances struct {
Total int
}
Click to show internal directories.
Click to hide internal directories.