kubernetes

package
v1.2.0-alpha20220413 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MPL-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() backend.Backend

New creates a new backend for kubernetes remote state.

Types

type Backend

type Backend struct {
	*schema.Backend
	// contains filtered or unexported fields
}

func (*Backend) DeleteWorkspace

func (b *Backend) DeleteWorkspace(name string) error

func (Backend) KubernetesLeaseClient

func (b Backend) KubernetesLeaseClient() (coordinationv1.LeaseInterface, error)

func (Backend) KubernetesSecretClient

func (b Backend) KubernetesSecretClient() (dynamic.ResourceInterface, error)

func (*Backend) StateMgr

func (b *Backend) StateMgr(name string) (statemgr.Full, error)

func (*Backend) Workspaces

func (b *Backend) Workspaces() ([]string, error)

Workspaces returns a list of names for the workspaces found in k8s. The default workspace is always returned as the first element in the slice.

type RemoteClient

type RemoteClient struct {
	// contains filtered or unexported fields
}

func (*RemoteClient) Delete

func (c *RemoteClient) Delete() error

Delete the state secret

func (*RemoteClient) Get

func (c *RemoteClient) Get() (payload *remote.Payload, err error)

func (*RemoteClient) Lock

func (c *RemoteClient) Lock(info *statemgr.LockInfo) (string, error)

func (*RemoteClient) Put

func (c *RemoteClient) Put(data []byte) error

func (*RemoteClient) Unlock

func (c *RemoteClient) Unlock(id string) error

Jump to

Keyboard shortcuts

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