dogu

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace string

type QualifiedName

type QualifiedName struct {
	SimpleName SimpleName
	Namespace  Namespace
}

func NewQualifiedName

func NewQualifiedName(namespace Namespace, simpleName SimpleName) (QualifiedName, error)

func QualifiedNameFromString

func QualifiedNameFromString(qualifiedName string) (QualifiedName, error)

QualifiedNameFromString converts a qualified dogu as a string, e.g. "official/nginx", to a dedicated QualifiedName or raises an error if this is not possible.

func (QualifiedName) String

func (name QualifiedName) String() string

String returns the dogu name with namespace, e.g. official/postgresql

func (QualifiedName) Validate

func (name QualifiedName) Validate() error

type QualifiedVersion

type QualifiedVersion struct {
	Name    QualifiedName
	Version core.Version
}

func NewQualifiedVersion

func NewQualifiedVersion(name QualifiedName, version core.Version) (QualifiedVersion, error)

type RemoteDoguDescriptorRepository

type RemoteDoguDescriptorRepository interface {
	// GetLatest returns the dogu descriptor for a dogu from the remote server.
	// DoguDescriptorNotFoundError if there is no descriptor for that dogu
	// ConnectionError if there are any connection issues
	// Generic Error if there are any other issues
	GetLatest(context.Context, QualifiedName) (*core.Dogu, error)
	// Get returns a version specific dogu descriptor.
	// DoguDescriptorNotFoundError if there is no descriptor for that dogu
	// ConnectionError if there are any connection issues
	// Generic Error if there are any other issues
	Get(context.Context, QualifiedVersion) (*core.Dogu, error)
}

type SimpleName

type SimpleName string

func (SimpleName) String

func (s SimpleName) String() string

String returns the string representation of the SimpleName.

Jump to

Keyboard shortcuts

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