Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIVersion = "0.0.1" Kind = "ksonnet.io/app" DefaultVersion = "0.0.1" )
Variables ¶
View Source
var ErrRegistryExists = fmt.Errorf("Registry with name already exists")
View Source
var ErrRegistryNameInvalid = fmt.Errorf("Registry name is invalid")
Functions ¶
This section is empty.
Types ¶
type ContributorSpec ¶
type ContributorSpecs ¶
type ContributorSpecs []*ContributorSpec
type GitVersionSpec ¶
type LibraryRefSpec ¶
type LibraryRefSpec struct {
Name string `json:"name"`
Registry string `json:"registry"`
GitVersion *GitVersionSpec `json:"gitVersion"`
}
type LibraryRefSpecs ¶
type LibraryRefSpecs map[string]*LibraryRefSpec
type RegistryRefSpec ¶
type RegistryRefSpec struct {
Name string `json:"-"`
Protocol string `json:"protocol"`
URI string `json:"uri"`
GitVersion *GitVersionSpec `json:"gitVersion"`
}
type RegistryRefSpecs ¶
type RegistryRefSpecs map[string]*RegistryRefSpec
type RepositorySpec ¶
type Spec ¶
type Spec struct {
APIVersion string `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Authors []string `json:"authors,omitempty"`
Contributors ContributorSpecs `json:"contributors,omitempty"`
Repository *RepositorySpec `json:"repository,omitempty"`
Bugs string `json:"bugs,omitempty"`
Keywords []string `json:"keywords,omitempty"`
Registries RegistryRefSpecs `json:"registries,omitempty"`
Libraries LibraryRefSpecs `json:"libraries,omitempty"`
License string `json:"license,omitempty"`
}
func (*Spec) AddRegistryRef ¶
func (s *Spec) AddRegistryRef(registryRefSpec *RegistryRefSpec) error
func (*Spec) GetRegistryRef ¶
func (s *Spec) GetRegistryRef(name string) (*RegistryRefSpec, bool)
Click to show internal directories.
Click to hide internal directories.