statefulset

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package statefulset manipulates the k8s api of statefulset object

Index

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 New

func New(options ...Option) *StatefulSet

New news a 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

Jump to

Keyboard shortcuts

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