kube

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MPL-2.0 Imports: 8 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 {
	CfgNamespace string
	*kubernetes.Clientset
}

func NewClient

func NewClient(configFlags *genericclioptions.ConfigFlags) (*Client, error)

type QueryResult

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

func (QueryResult) LivenessHit

func (qr QueryResult) LivenessHit() bool

func (QueryResult) QueriedServiceName

func (qr QueryResult) QueriedServiceName() string

func (QueryResult) QueryHit

func (qr QueryResult) QueryHit() bool

func (QueryResult) SelectionServiceName

func (qr QueryResult) SelectionServiceName() string

func (QueryResult) ServiceProbes

func (qr QueryResult) ServiceProbes() ServiceProbes

type QueryResults

type QueryResults []QueryResult

func DoQuery

func DoQuery(ctx context.Context, svcNames []string, ns string, ctl *Client) (QueryResults, error)

func (QueryResults) HasLivenessHits

func (r QueryResults) HasLivenessHits() bool

func (QueryResults) HasQueryHits

func (r QueryResults) HasQueryHits() bool

func (QueryResults) LivenessHits

func (r QueryResults) LivenessHits() QueryResults

func (QueryResults) LivenessMisses

func (r QueryResults) LivenessMisses() QueryResults

func (QueryResults) QueryMisses

func (r QueryResults) QueryMisses() QueryResults

type Selection

type Selection struct {
	Service corev1.Service
	Pod     corev1.Pod
}

func (Selection) ServiceProbes

func (s Selection) ServiceProbes() ServiceProbes

type ServiceProbe

type ServiceProbe struct {
	Url      *url.URL
	HTTPGets []*corev1.HTTPGetAction
}

type ServiceProbes

type ServiceProbes []ServiceProbe

Jump to

Keyboard shortcuts

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