v1alpha1

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       Spec     `json:"spec"`
}

Config holds the configuration variables for config version v1alpha1 ApiVersion and Kind are currently unused, this may change in the future.

func New

func New() *Config

New creates a new Config object with internal values already set

type Metadata

type Metadata struct {
	Name   string            `json:"name,omitempty"`
	Labels map[string]string `json:"labels,omitempty"`
}

Metadata is meant for humans and not parsed

func (Metadata) Get added in v0.11.0

func (m Metadata) Get(label string) (value string)

Get implements Get for labels.Labels interface

func (Metadata) Has added in v0.11.0

func (m Metadata) Has(label string) (exists bool)

Has and Get make Metadata a simple wrapper for labels.Labels to use our map in their querier

func (Metadata) NameLabel added in v0.10.0

func (m Metadata) NameLabel() string

type Spec

type Spec struct {
	APIServer    string `json:"apiServer"`
	Namespace    string `json:"namespace"`
	DiffStrategy string `json:"diffStrategy,omitempty"`
	InjectLabels bool   `json:"injectLabels,omitempty"`
}

Spec defines Kubernetes properties

Jump to

Keyboard shortcuts

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