storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Equals string = "="
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Key      string
	Values   []string
	Operator string
}

type Resource

type Resource struct {
	Cluster    string                 `json:"cluster"`
	Namespace  string                 `json:"namespace"`
	APIVersion string                 `json:"apiVersion"`
	Kind       string                 `json:"kind"`
	Name       string                 `json:"name"`
	Object     map[string]interface{} `json:"object"`
}

type SearchResult

type SearchResult struct {
	Total     int
	Resources []*Resource
}

type SearchStorage added in v0.1.4

type SearchStorage interface {
	Search(ctx context.Context, queries []Query) (*SearchResult, error)
	SearchByString(ctx context.Context, queryString string) (*SearchResult, error)
}

type SearchStorageGetter added in v0.1.4

type SearchStorageGetter interface {
	GetSearchStorage() (SearchStorage, error)
}

type Storage

type Storage interface {
	Get(ctx context.Context, cluster string, obj runtime.Object) error
	Create(ctx context.Context, cluster string, obj runtime.Object) error
	Update(ctx context.Context, cluster string, obj runtime.Object) error
	Delete(ctx context.Context, cluster string, obj runtime.Object) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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