Documentation ¶
Index ¶
Constants ¶
View Source
const BackstageV1alpha1 = "backstage.io/v1alpha1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶ added in v0.2.3
type Component struct { Type string `yaml:"type"` Lifecycle string `yaml:"lifecycle"` Owner Reference `yaml:"owner"` System Reference `yaml:"system,omitempty"` SubComponentOf Reference `yaml:"subcomponentOf,omitempty"` ProvidesApis []Reference `yaml:"providesApis,omitempty"` ConsumesApis []Reference `yaml:"consumesApis,omitempty"` DependsOn []Reference `yaml:"dependsOn,omitempty"` }
type Envelope ¶
type Envelope struct { ApiVersion string `yaml:"apiVersion,omitempty"` Kind string `yaml:"kind,omitempty"` Metadata *Metadata `yaml:"metadata,omitempty"` Relations []Relation `yaml:"relations,omitempty"` Spec Spec `yaml:"spec,omitempty"` }
func NewEnvelope ¶
will automatically fix name and namespace using SafeName
func (*Envelope) Reference ¶ added in v0.2.3
https://backstage.io/docs/features/software-catalog/references format: [<kind>:][<namespace>/]<name>
type Link ¶
type Link struct { URL string `yaml:"url,omitempty"` Title string `yaml:"title,omitempty"` Icon string `yaml:"icon,omitempty"` Type string `yaml:"type,omitempty"` }
https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional
type Metadata ¶
type Metadata struct { Name string `yaml:"name,omitempty"` Namespace string `yaml:"namespace,omitempty"` Title string `yaml:"title,omitempty"` Description string `yaml:"description,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Annotations map[string]string `yaml:"annotations,omitempty"` Tags []string `yaml:"tags,omitempty"` Links []Link `yaml:"links,omitempty"` }
type Reference ¶
type Reference string
https://backstage.io/docs/features/software-catalog/references [<kind>:][<namespace>/]<name>
type Relation ¶ added in v0.2.3
type Relation struct { Target Reference `yaml:"target,omitempty"` Type string `yaml:"type,omitempty"` }
https://backstage.io/docs/features/software-catalog/descriptor-format#common-to-all-kinds-relations
Click to show internal directories.
Click to hide internal directories.