kubernetesk8s.io/kubernetes/pkg/registry/apps/statefulset Index | Files | Directories

package statefulset

import "k8s.io/kubernetes/pkg/registry/apps/statefulset"

Index

Variables

var StatusStrategy = statefulSetStatusStrategy{Strategy}
var Strategy = statefulSetStrategy{api.Scheme, names.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating Replication StatefulSet objects.

Types

type Registry

type Registry interface {
	ListStatefulSets(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (*apps.StatefulSetList, error)
	WatchStatefulSets(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
	GetStatefulSet(ctx genericapirequest.Context, statefulSetID string, options *metav1.GetOptions) (*apps.StatefulSet, error)
	CreateStatefulSet(ctx genericapirequest.Context, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
	UpdateStatefulSet(ctx genericapirequest.Context, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
	DeleteStatefulSet(ctx genericapirequest.Context, statefulSetID string) error
}

Registry is an interface for things that know how to store StatefulSets.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Source Files

doc.go registry.go strategy.go

Directories

PathSynopsis
pkg/registry/apps/statefulset/storage
Version
v1.8.13-beta.0
Published
Apr 23, 2018
Platform
windows/amd64
Imports
15 packages
Last checked
1 minute ago

Tools for package owners.