kubernetes

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWatcherClosed = errors.New("channel closed")
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(kubeConfigPath string, moduloCrashReportNotif float64, e Exporter) (*Client, error)

func (*Client) HandleNewDaemonSets added in v0.5.0

func (c *Client) HandleNewDaemonSets(ctx context.Context) error

func (*Client) HandleNewDeployments added in v0.5.0

func (c *Client) HandleNewDeployments(ctx context.Context) error

func (*Client) HandleNewStatefulSets added in v0.5.0

func (c *Client) HandleNewStatefulSets(ctx context.Context) error

func (*Client) HandlePodErrors added in v0.5.0

func (c *Client) HandlePodErrors(ctx context.Context) error

type ContainerLog added in v0.5.0

type ContainerLog struct {
	Level   string
	Message string
}

type Exporter added in v0.5.0

type Exporter interface {
	// Send a message through the exporter.
	SendSuccessfulReleaseEvent(c context.Context, event httpinternal.ReleaseEvent) error
	SendPodErrorEvent(c context.Context, event httpinternal.PodErrorEvent) error
}

Exporter sends a formatted event to an upstream.

type ReleaseManagerExporter added in v0.5.0

type ReleaseManagerExporter struct {
	Log         *log.Logger
	Environment string
	Client      httpinternal.Client
}

func (*ReleaseManagerExporter) SendPodErrorEvent added in v0.5.0

func (e *ReleaseManagerExporter) SendPodErrorEvent(ctx context.Context, event httpinternal.PodErrorEvent) error

func (*ReleaseManagerExporter) SendSuccessfulReleaseEvent added in v0.5.0

func (e *ReleaseManagerExporter) SendSuccessfulReleaseEvent(ctx context.Context, event httpinternal.ReleaseEvent) error

Jump to

Keyboard shortcuts

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