Documentation ¶
Index ¶
- type Client
- func (self *Client) CreateDeployment(deployment *apps.Deployment, appName string) (*apps.Deployment, error)
- func (self *Client) CreateNetworkAttachmentDefinition(network *resources.Network, config string) (*cniresources.NetworkAttachmentDefinition, error)
- func (self *Client) DefaultSecurityContext() *core.SecurityContext
- func (self *Client) DeleteNetwork(namespace string, serviceName string) error
- func (self *Client) GetNetwork(namespace string, networkName string) (*resources.Network, error)
- func (self *Client) GetNetworkAttachmentDefinition(namespace string, networkName string) (*cniresources.NetworkAttachmentDefinition, error)
- func (self *Client) Install(registry string, wait bool) error
- func (self *Client) Labels(appName string, component string, namespace string) map[string]string
- func (self *Client) ListNetworks() (*resources.NetworkList, error)
- func (self *Client) Logs(appNameSuffix string, containerName string, tail int, follow bool) ([]io.ReadCloser, error)
- func (self *Client) Uninstall(wait bool)
- func (self *Client) WaitForDeletion(name string, condition func() bool)
- func (self *Client) WaitForDeployment(namespace string, appName string) (*apps.Deployment, error)
- func (self *Client) WaitForPod(namespace string, appName string) (*core.Pod, error)
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 (*Client) GetNetwork ¶
func (*Client) GetNetworkAttachmentDefinition ¶
func (self *Client) GetNetworkAttachmentDefinition(namespace string, networkName string) (*cniresources.NetworkAttachmentDefinition, error)
func (*Client) ListNetworks ¶
func (self *Client) ListNetworks() (*resources.NetworkList, error)
func (*Client) WaitForDeletion ¶
func (*Client) WaitForDeployment ¶
Click to show internal directories.
Click to hide internal directories.