k8s

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(kubeconfig string) (*Client, error)

NewClient retunrs kubernetes client for client-go and kubectl kubeconfig must be path to file or empty(in-cluster config will be used)

func (*Client) Apply

func (c *Client) Apply(ctx context.Context, yaml io.Reader) (string, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, yaml io.Reader) (string, error)

func (*Client) Status

func (c *Client) Status(ctx context.Context, namespace, deploy, containerName string) (*modoki.AppStatus, error)

Status returns status for deployment and pods created by it

Jump to

Keyboard shortcuts

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