Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.