config

package
v0.0.0-...-d30007d Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCA

func LoadCA(caFile string) (*x509.CertPool, error)

func LoadToken

func LoadToken(path string) (string, error)

Types

type Selector

type Selector struct {
	MatchLabels map[string]string `yaml:"matchLabels"`
}

type Spec

type Spec struct {
	Containers []corev1.Container `yaml:"containers"`
	Selector   Selector           `yaml:"selector"`
}

type WebClient

type WebClient struct {
	Url    string
	Token  string
	Client *http.Client
}

func (*WebClient) LoadSidecarConfig

func (webClient *WebClient) LoadSidecarConfig() ([]Spec, error)

Jump to

Keyboard shortcuts

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