config

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultConfigFileName = ".testkube-watch.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// For watching specific namespace, leave it empty for watching all.
	// this config is ignored when watching namespaces
	Namespace string `json:"namespace,omitempty"`

	// the address of the API server
	TestkubeApiServer string `json:"testkube_api_server" yaml:"testkube_api_server"`

	// Resources to watch
	Resource Resource `json:"resource"`
}

Config struct contains kubewatch configuration

func New

func New() (*Config, error)

New creates new config object

func (*Config) Load

func (c *Config) Load() error

Load loads configuration from config file

type Resource

type Resource struct {
	Deployment bool `json:"deployment"`
	Services   bool `json:"svc"`
}

Resource contains resource configuration

Jump to

Keyboard shortcuts

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