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
}
Client represents the wrapper of Kubernetes API client
func NewClientInCluster ¶
NewClientInCluster creates Client object in Kubernetes cluster
func (*Client) NamespaceInConfig ¶
NamespaceInConfig returns namespace set in kubeconfig
func (*Client) WatchPodEvents ¶
func (c *Client) WatchPodEvents(ctx context.Context, namespace, labels string, notifySuccess, notifyFail bool, succeededFunc, failedFunc NotifyFunc) error
WatchPodEvents watches Pod events
type NotifyFunc ¶
NotifyFunc represents callback function for Pod event
Click to show internal directories.
Click to hide internal directories.