Documentation
¶
Index ¶
- Constants
- type CommonConsumerServiceImplementationSpec
- type CommonServiceImplementationSpec
- type CommonServiceSpec
- type Contract
- type Contracts
- type Dependencies
- type Dependency
- type DependencyResolution
- type DependencyResolutions
- type InstalledService
- type InstalledServices
- type Installer
- type Installers
- type Label
- type Labels
- type ManagedService
- type ManagedServices
- type ResourceReference
- type ServiceInstance
- type ServiceInstances
- type StaticInfo
- type TargetEnvironment
Constants ¶
View Source
const ( DEPKIND_IMPLEMENTATION = "implementation" DEPKIND_ORCHESTRATION = "orchestration" // DEPKIND_INSTALLER is the dependency to an installer. // It is maintained as explicit attribute and not part of regular // dependencies, because they feature a restricted attribute set. DEPKIND_INSTALLER = "installer" )
View Source
const ( DEPRES_MANGED = "managed" DEPRES_CONFIGURED = "configured" DEPUSE_EXCLUSIVE = "exclusive" DEPUSE_SHARED = "shared" DEPUSE_CONFIGURED = "configured" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonConsumerServiceImplementationSpec ¶
type CommonConsumerServiceImplementationSpec struct {
CommonServiceImplementationSpec `json:",inline"`
External bool `json:"external,omitempty"`
Installers Installers `json:"installers,omitempty"`
}
type CommonServiceImplementationSpec ¶
type CommonServiceImplementationSpec struct {
runtime.ObjectTypedObject `json:",inline"`
Variant identity.Variant `json:"variant,omitempty"`
Abstract bool `json:"abstract,omitempty"`
InheritFrom identity.Variant `json:"inheritFrom,omitempty"`
Dependencies Dependencies `json:"dependencies,omitempty"`
Contracts Contracts `json:"contracts,omitempty"`
}
func (CommonServiceImplementationSpec) Copy ¶
func (c CommonServiceImplementationSpec) Copy() *CommonServiceImplementationSpec
func (*CommonServiceImplementationSpec) GetVariant ¶
func (s *CommonServiceImplementationSpec) GetVariant() identity.Variant
type CommonServiceSpec ¶
type CommonServiceSpec struct {
Service identity.ServiceIdentity `json:"service"`
Version string `json:"version,omitempty"`
ShortName string `json:"shortName"`
Description string `json:"description,omitempty"`
Labels Labels `json:"labels,omitempty"`
}
func (*CommonServiceSpec) Copy ¶
func (s *CommonServiceSpec) Copy() *CommonServiceSpec
func (*CommonServiceSpec) GetId ¶
func (s *CommonServiceSpec) GetId() identity.ServiceVersionIdentity
type Contract ¶
type Contract struct {
Service identity.ServiceIdentity `json:"service"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
Labels Labels `json:"labels,omitempty"`
}
type Contracts ¶
type Contracts = utils.CopyableList[Contract]
type Dependencies ¶
type Dependencies = utils.CopyableList[Dependency]
type Dependency ¶
type Dependency struct {
Name string `json:"name"`
Service identity.ServiceIdentity `json:"service"`
Variant identity.Variant `json:"variant,omitempty"`
Kind string `json:"kind"`
VersionConstraints []string `json:"versionConstraints,omitempty"`
ServiceInstances ServiceInstances `json:"serviceInstances,omitempty"`
Optional bool `json:"optional,omitempty"`
Description string `json:"description,omitempty"`
Labels Labels `json:"labels,omitempty"`
}
func (Dependency) Copy ¶
func (d Dependency) Copy() *Dependency
type DependencyResolution ¶
type DependencyResolution struct {
Name string `json:"name"`
Resolution string `json:"resolution"`
Usage string `json:"usage"`
Labels Labels `json:"labels,omitempty"`
}
func (DependencyResolution) Copy ¶
func (d DependencyResolution) Copy() *DependencyResolution
type DependencyResolutions ¶
type DependencyResolutions = utils.CopyableList[DependencyResolution]
type InstalledService ¶
type InstalledService struct {
Service identity.ServiceIdentity `json:"service,omitempty"`
Versions []string `json:"versions,omitempty"`
Variant identity.Variant `json:"variant,omitempty"`
}
func (InstalledService) Copy ¶
func (s InstalledService) Copy() *InstalledService
type InstalledServices ¶
type InstalledServices = utils.CopyableList[InstalledService]
type Installer ¶
type Installers ¶
type Installers = utils.CopyableList[Installer]
type Label ¶
type ManagedService ¶
type ManagedService struct {
Name string `json:"name,omitempty"`
Service identity.ServiceIdentity `json:"service"`
Variant identity.Variant `json:"variant,omitempty"`
Versions []string `json:"versions,omitempty"`
Labels Labels `json:"labels,omitempty"`
DependencyResolutions DependencyResolutions `json:"dependencyResolutions,omitempty"`
}
func (ManagedService) Copy ¶
func (s ManagedService) Copy() *ManagedService
type ManagedServices ¶
type ManagedServices = utils.CopyableList[ManagedService]
type ResourceReference ¶
type ResourceReference ocmmeta.ResourceReference
func (*ResourceReference) AsResourceRef ¶
func (r *ResourceReference) AsResourceRef() *ocmmeta.ResourceReference
func (*ResourceReference) Copy ¶
func (r *ResourceReference) Copy() *ResourceReference
func (*ResourceReference) String ¶
func (r *ResourceReference) String() string
type ServiceInstance ¶
type ServiceInstance struct {
Service identity.ServiceIdentity `json:"service"`
Variant identity.Variant `json:"variant,omitempty"`
Versions []string `json:"versions,omitempty"`
Dynamic bool `json:"dynamic"`
Static []StaticInfo `json:"static,omitempty"`
}
func (ServiceInstance) Copy ¶
func (i ServiceInstance) Copy() *ServiceInstance
type ServiceInstances ¶
type ServiceInstances = utils.CopyableList[ServiceInstance]
type StaticInfo ¶
type StaticInfo struct {
Name string `json:"name"`
}
type TargetEnvironment ¶
Click to show internal directories.
Click to hide internal directories.