Documentation ¶
Overview ¶
Package statefulset manipulates the k8s api of statefulset object
Index ¶
- type Option
- type StatefulSet
- func (sts *StatefulSet) Create(statefulset *appsv1.StatefulSet) error
- func (sts *StatefulSet) Delete(namespace, name string) error
- func (sts *StatefulSet) Get(namespace, name string) (*appsv1.StatefulSet, error)
- func (sts *StatefulSet) LimitedListAllNamespace(limit int, cont *string) (*appsv1.StatefulSetList, *string, error)
- func (sts *StatefulSet) List(namespace string) (appsv1.StatefulSetList, error)
- func (sts *StatefulSet) WatchAllNamespace(ctx context.Context, addfunc, updatefunc, deletefunc func(*appsv1.StatefulSet)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*StatefulSet)
Option configures a StatefulSet
func WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
type StatefulSet ¶
type StatefulSet struct {
// contains filtered or unexported fields
}
StatefulSet is the object to manipulate k8s api of statefulset
func (*StatefulSet) Create ¶
func (sts *StatefulSet) Create(statefulset *appsv1.StatefulSet) error
Create creates a k8s statefulset
func (*StatefulSet) Delete ¶
func (sts *StatefulSet) Delete(namespace, name string) error
Delete deletes a k8s statefulset
func (*StatefulSet) Get ¶
func (sts *StatefulSet) Get(namespace, name string) (*appsv1.StatefulSet, error)
Get gets a k8s statefulset
func (*StatefulSet) LimitedListAllNamespace ¶
func (sts *StatefulSet) LimitedListAllNamespace(limit int, cont *string) (*appsv1.StatefulSetList, *string, error)
func (*StatefulSet) List ¶
func (sts *StatefulSet) List(namespace string) (appsv1.StatefulSetList, error)
func (*StatefulSet) WatchAllNamespace ¶
func (sts *StatefulSet) WatchAllNamespace(ctx context.Context, addfunc, updatefunc, deletefunc func(*appsv1.StatefulSet)) error
Click to show internal directories.
Click to hide internal directories.