Documentation
¶
Index ¶
- type EnvManifest
- func (envManifest *EnvManifest) DeleteEnv(id string) (env *Environment, err error)
- func (envManifest *EnvManifest) GetEnv(id string) (env *Environment)
- func (envManifest *EnvManifest) ListEnvs() (environments []*Environment)
- func (envManifest EnvManifest) MarshalYAML() (interface{}, error)
- func (envManifest *EnvManifest) PutEnv(env *Environment) (err error)
- func (envManifest *EnvManifest) RootPublicKey() (*crypto.PublicKey, error)
- func (envManifest *EnvManifest) SearchEnvs(queries []string) (environments []*Environment)
- func (envManifest *EnvManifest) SetRoot(env *Environment) error
- func (envManifest *EnvManifest) UnmarshalYAML(value *yaml.Node) (err error)
- type EnvType
- type Environment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvManifest ¶
type EnvManifest struct {
// contains filtered or unexported fields
}
func GetManifest ¶
func GetManifest(path string) (envManifest *EnvManifest, err error)
func NewManifest ¶
func NewManifest(path string) (envManifest *EnvManifest, err error)
func (*EnvManifest) DeleteEnv ¶
func (envManifest *EnvManifest) DeleteEnv(id string) (env *Environment, err error)
func (*EnvManifest) ListEnvs ¶
func (envManifest *EnvManifest) ListEnvs() (environments []*Environment)
func (EnvManifest) MarshalYAML ¶
func (envManifest EnvManifest) MarshalYAML() (interface{}, error)
func (*EnvManifest) RootPublicKey ¶
func (envManifest *EnvManifest) RootPublicKey() (*crypto.PublicKey, error)
func (*EnvManifest) SearchEnvs ¶
func (envManifest *EnvManifest) SearchEnvs(queries []string) (environments []*Environment)
func (*EnvManifest) UnmarshalYAML ¶
func (envManifest *EnvManifest) UnmarshalYAML(value *yaml.Node) (err error)
type EnvType ¶
type EnvType string
const (
EnvironmentKey crypto.KeyType = 'E'
USER EnvType = "user"
SERVICE EnvType = "service"
ROOT EnvType = "root"
)
type Environment ¶
type Environment struct {
PublicKey string `yaml:"publicKey"`
Name string `yaml:"name"`
Email string `yaml:"email"`
EnvType EnvType `yaml:"type"`
Tags []string `yaml:"tags"`
SecretBinding string `yaml:"binding,omitempty"`
// contains filtered or unexported fields
}
func FromEnvDef ¶
func FromEnvDef(envDef string) (env *Environment, err error)
func NewEnvironment ¶
func NewEnvironment(name string, envType EnvType, pq bool) (*Environment, *crypto.SecretKey, error)
func (*Environment) MarkAsSelf ¶
func (env *Environment) MarkAsSelf() error
Click to show internal directories.
Click to hide internal directories.