primitives

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Key     string `json:"key"`
	Name    string `json:"name,omitempty"`
	Default string `json:"default,omitempty"`
}

Credential represents the specification that is required to filter out specific credentials in the Resource spec.

func (*Credential) Valid

func (c *Credential) Valid() bool

Valid will validate the CredentialSpec.

type CredentialValue

type CredentialValue struct {
	Credential `json:",inline"`
	Value      string `json:"value"`
}

CredentialValue is a simple representation of the actual key/value of a Credential.

type Project

type Project struct {
	Name      string      `json:"project,name"`
	Team      string      `json:"team,omitempty"`
	Resources []*Resource `json:"resources,omitempty"`
}

Project is the specification that is required to build a valid Project manifest.

func (*Project) Valid

func (p *Project) Valid() bool

Valid will validate the Project.

type Resource

type Resource struct {
	Name        string        `json:"resource,name"`
	Team        string        `json:"team,omitempty"`
	Credentials []*Credential `json:"credentials,omitempty"`
}

Resource is the specification that is required to build a valid Resource manifest.

func (*Resource) Valid

func (r *Resource) Valid() bool

Valid will validate the Resource.

Jump to

Keyboard shortcuts

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