kubernetes

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigFile

func DefaultConfigFile() string

DefaultConfigFile returns the default kubeconfig file path

func DefaultNamespace

func DefaultNamespace() string

DefaultNamespace returns the default namespace

Types

type Client

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

func NewClient

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

NewClient creates Client object using local kubecfg

func (*Client) WatchDeploymentEvents

func (c *Client) WatchDeploymentEvents(ctx context.Context, namespace string, notifyFunc NotifyFunc) error

func (*Client) WatchStatefulsetEvents

func (c *Client) WatchStatefulsetEvents(ctx context.Context, namespace string, notifyFunc NotifyFunc) error

type Event

type Event struct {
	Environment string
	Application string
	Version     string
}

type NotifyFunc

type NotifyFunc func(events []Event) error

NotifyFunc represents callback function for Pod event

Jump to

Keyboard shortcuts

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