Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownType = "unknown" ManualType = "manual" DockerType = "docker" GithubType = "github" )
Variables ¶
This section is empty.
Functions ¶
func DetermineType ¶
DetermineType will try to determine the type for the spec 'unknown' will be returned if it cannot be determined
Types ¶
type FilterOptions ¶
type Manifest ¶
type Manifest struct { APIVersion string `json:"apiVersion"` Dependencies []Spec `json:"dependencies"` }
Manifest contains a list of dependencies
func (*Manifest) Append ¶
Append will add a dependency to the struct if it does not already exist Returns false if dependency was not added
type ManifestWriter ¶
type ManifestWriter struct { Writer io.Writer FilterOptions FilterOptions }
func (ManifestWriter) WriteJSON ¶
func (mf ManifestWriter) WriteJSON(m Manifest) error
func (ManifestWriter) WriteTable ¶
func (mf ManifestWriter) WriteTable(m Manifest)
func (ManifestWriter) WriteYAML ¶
func (mf ManifestWriter) WriteYAML(m Manifest) error
type Spec ¶
type Spec struct { Name string `yaml:"name" json:"name"` Type string `yaml:"type" json:"type"` Version string `yaml:"version" json:"version"` LatestVersion string `yaml:"latestVersion,omitempty" json:"latestVersion"` Mask string `yaml:"mask,omitempty" json:"mask"` Notes string `yaml:"notes,omitempty" json:"notes"` }
Spec describes a resource Type: github, docker, manual Source will be specific to a 'Type'
Click to show internal directories.
Click to hide internal directories.