config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Metadata metadata.Metadata `yaml:"metadata"`
	Spec     spec.Spec         `yaml:"spec"`
}

Config represents a desired remote configuration.

func Import

func Import(ctx context.Context, fullName string) (*Config, error)

Import remote state to config

func LoadFromFile

func LoadFromFile(path string) (*Config, error)

LoadFromFile loads a config file from `path` the format must be YAML.

func (*Config) Apply

func (c *Config) Apply(ctx context.Context) error

Apply changes the remote configurations based on this Config.

func (*Config) CalculateChangeSet

func (c *Config) CalculateChangeSet(ctx context.Context) (change.ChangeSet, error)

func (*Config) Plan

func (c *Config) Plan(ctx context.Context) error

Plan shows the expected changes without changing actual states.

func (*Config) ToYAML

func (c *Config) ToYAML() (string, error)

ToYAML serialize Config to the YAML format.

Jump to

Keyboard shortcuts

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