config

package
v0.0.0-...-6c48755 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultName = ".kubecom.yaml"

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

func Exists

func Exists(path string) bool

func Init

func Init(path string) error

func Load

func Load(path string) (*pb.Config, error)

func Save

func Save(path string, config *pb.Config) error

func Watch

func Watch(ctx context.Context, path string, ch chan<- Event) error

Types

type Event

type Event struct {
	Config *pb.Config
	Err    error
}

Jump to

Keyboard shortcuts

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