kubernetes

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrApplyManifest

func ErrApplyManifest(err error) error

func ErrServiceDiscovery added in v0.1.22

func ErrServiceDiscovery(err error) error

ErrServiceDiscovery returns an error of type "ErrServiceDiscovery" along with the passed error

Types

type ApplyOptions

type ApplyOptions struct {
	Namespace string
	Update    bool
	Delete    bool
}

type Client added in v0.1.26

type Client struct {
	RestConfig rest.Config          `json:"restconfig,omitempty"`
	Clientset  kubernetes.Interface `json:"clientset,omitempty"`
}

func New

func New(clientset kubernetes.Interface, cfg rest.Config) (*Client, error)

func (*Client) ApplyManifest added in v0.1.26

func (client *Client) ApplyManifest(contents []byte, options ApplyOptions) error

func (*Client) GetServiceEndpoint added in v0.1.26

func (client *Client) GetServiceEndpoint(ctx context.Context, svcName, namespace string) (*utils.Endpoint, error)

GetServiceEndpoint returns the endpoint for the given service

Jump to

Keyboard shortcuts

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