opensearch

package
v0.0.0-...-8bea463 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewLoaderContext

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

func NewWatcher

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

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 Get

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

func GetByIdent

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

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

type OpenSearchAccessConnection

type OpenSearchAccessConnection = pagination.Connection[*OpenSearchAccess]

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

type TeamInventoryCountOpenSearchInstances

type TeamInventoryCountOpenSearchInstances struct {
	Total int
}

Jump to

Keyboard shortcuts

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