storage

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyComponent = errors.New("component is empty")

ErrEmptyComponent indicates that the component is empty.

View Source
var ErrEmptyResource = errors.New("resource is empty")

ErrEmptyResource indicates that the resource is empty.

View Source
var ErrInvalidContent = errors.New("root key is invalid")

ErrInvalidContent is an error for root key is invalid

View Source
var ErrIsNotObjectKey = errors.New("key is not an object key")

ErrIsNotObjectKey indicates that this key is not a key point to a single object.

View Source
var ErrIsNotRootKey = errors.New("key is not a root key")

ErrIsNotRootKey indicates that this key is not a root key

View Source
var ErrKeyExists = errors.New("specified key has already existed")

ErrKeyExists indicates that this key has already existed

View Source
var ErrKeyHasNoContent = errors.New("specified key has no contents")

ErrKeyHasNoContent is an error for file key that has no contents

View Source
var ErrKeyIsEmpty = errors.New("specified key is empty")

ErrKeyIsEmpty is an error for key is empty

View Source
var ErrStorageAccessConflict = errors.New("specified key is under accessing")

ErrStorageAccessConflict is an error for accessing key conflict

View Source
var ErrStorageNotFound = errors.New("specified key is not found")

ErrStorageNotFound is an error for not found accessing key

View Source
var ErrUnknownClusterInfoType = errors.New("unknown ClusterInfoType")

ErrUnknownClusterInfoType indicates the ClusterInfo type is unknown to the storage.

View Source
var ErrUnrecognizedKey = errors.New("unrecognized key")

ErrUnrecognizedKey indicates that this key cannot be recognized by this store

View Source
var ErrUpdateConflict = errors.New("update conflict for old resource version")

ErrUpdateConflict indicates that using an old object to update a new object

Functions

This section is empty.

Types

type ClusterInfoKey added in v1.2.0

type ClusterInfoKey struct {
	ClusterInfoType
	UrlPath string
}

type ClusterInfoType added in v1.2.0

type ClusterInfoType string
const (
	Version          ClusterInfoType = "version"
	APIsInfo         ClusterInfoType = "apis"
	APIResourcesInfo ClusterInfoType = "api-resources"
	Unknown          ClusterInfoType = "unknown"
)

type Key added in v1.2.0

type Key interface {
	Key() string
}

type KeyBuildInfo added in v1.2.0

type KeyBuildInfo struct {
	Component string
	Namespace string
	Name      string
	Resources string
	Group     string
	Version   string
}

type Store

type Store interface {
	// Name will return the name of this store.
	Name() string
	// contains filtered or unexported methods
}

Store is an interface for caching data into store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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