config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

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
	Directories []ctldir.Config
}

func NewConfigFromBytes

func NewConfigFromBytes(bs []byte) (Config, error)

func NewConfigFromFile

func NewConfigFromFile(path string) (Config, error)

func (Config) Validate

func (c Config) Validate() error

type LockConfig

type LockConfig struct {
	APIVersion  string              `json:"apiVersion"`
	Kind        string              `json:"kind"`
	Directories []ctldir.LockConfig `json:"directories"`
}

func NewLockConfig

func NewLockConfig() LockConfig

func (LockConfig) WriteToFile

func (c LockConfig) WriteToFile(path string) error

Jump to

Keyboard shortcuts

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