v1

package
v0.0.0-...-a230fe6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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"`
}

func (CommonConsumerServiceImplementationSpec) Copy

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 (*CommonServiceImplementationSpec) GetVariant

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 (*CommonServiceSpec) GetId

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"`
}

func (Contract) Copy

func (c Contract) Copy() *Contract

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

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

type InstalledServices

type InstalledServices = utils.CopyableList[InstalledService]

type Installer

type Installer struct {
	Service     identity.ServiceIdentity `json:"service"`
	Variant     identity.Variant         `json:"variant,omitempty"`
	Version     string                   `json:"version,omitempty"`
	Description string                   `json:"description,omitempty"`
	Labels      Labels                   `json:"labels,omitempty"`
}

func (Installer) Copy

func (i Installer) Copy() *Installer

type Installers

type Installers = utils.CopyableList[Installer]

type Label

type Label struct {
	Name    string           `json:"name"`
	Version string           `json:"version"`
	Value   runtime.RawValue `json:"value"`
}

func (*Label) Copy

func (l *Label) Copy() *Label

func (Label) Validate

func (l Label) Validate() error

type Labels

type Labels []Label

func (Labels) Copy

func (l Labels) Copy() Labels

func (Labels) Validate

func (l Labels) Validate() error

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 (*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

type TargetEnvironment = ocmmeta.StringMap

Jump to

Keyboard shortcuts

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