client

package
v0.0.0-...-4a2caa5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config        *rest.Config
	Kubernetes    kubernetespkg.Interface
	APIExtensions apiextensionspkg.Interface
	Net           netpkg.Interface
	Knap          knappkg.Interface

	Cluster           bool
	Namespace         string
	NamePrefix        string
	PartOf            string
	ManagedBy         string
	OperatorImageName string

	Context context.Context
	Log     commonlog.Logger
}

func (*Client) CreateDeployment

func (self *Client) CreateDeployment(deployment *apps.Deployment, appName string) (*apps.Deployment, error)

func (*Client) CreateNetworkAttachmentDefinition

func (self *Client) CreateNetworkAttachmentDefinition(network *resources.Network, config string) (*cniresources.NetworkAttachmentDefinition, error)

func (*Client) DefaultSecurityContext

func (self *Client) DefaultSecurityContext() *core.SecurityContext

func (*Client) DeleteNetwork

func (self *Client) DeleteNetwork(namespace string, serviceName string) error

func (*Client) GetNetwork

func (self *Client) GetNetwork(namespace string, networkName string) (*resources.Network, error)

func (*Client) GetNetworkAttachmentDefinition

func (self *Client) GetNetworkAttachmentDefinition(namespace string, networkName string) (*cniresources.NetworkAttachmentDefinition, error)

func (*Client) Install

func (self *Client) Install(registry string, wait bool) error

func (*Client) Labels

func (self *Client) Labels(appName string, component string, namespace string) map[string]string

func (*Client) ListNetworks

func (self *Client) ListNetworks() (*resources.NetworkList, error)

func (*Client) Logs

func (self *Client) Logs(appNameSuffix string, containerName string, tail int, follow bool) ([]io.ReadCloser, error)

func (*Client) Uninstall

func (self *Client) Uninstall(wait bool)

func (*Client) WaitForDeletion

func (self *Client) WaitForDeletion(name string, condition func() bool)

func (*Client) WaitForDeployment

func (self *Client) WaitForDeployment(namespace string, appName string) (*apps.Deployment, error)

func (*Client) WaitForPod

func (self *Client) WaitForPod(namespace string, appName string) (*core.Pod, error)

Jump to

Keyboard shortcuts

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