package
0.14.0
Repository: https://github.com/cloudogu/cesapp-lib.git
Documentation: pkg.go.dev

# Functions

ContainsDoguWithName checks if a dogu is contained in a slice by comparing the full name (including namespace).
No description provided by the author
GetContentOfFile all content of the file at the given path and returns it as string.
GetNamespace returns a dogu's namespace.
GetSimpleDoguName returns the dogu name without its namespace.
ParseVersion parses a raw version string and returns a Version struct.
ParseVersionComparator creates a new version comparator by parsing a raw version string.
ReadDoguFromFile reads a single dogu from a file and returns it along with a dogu API version.
ReadDoguFromString reads a dogu from a string and returns it along with a dogu API version.
ReadDogusFromFile reads all dogus from a given file and returns them along with a their dogu API version.
ReadDogusFromString reads multiple dogus from a string and returns them along with a dogu API version.
SortDogusByDependency takes an unsorted slice of Dogu structs and returns a slice of Dogus ordered by the importance of their dependencies descending, that is: the most needed dogu will be the first element.
SortDogusByInvertedDependency takes an unsorted slice of Dogu structs and returns a new slice of Dogus ordered by the importance of their dependencies ascending, that is: the most independent dogu will be the first element.
SortDogusByName takes an unsorted slice of Dogus and returns an copy of the slice ordered by the full name of the dogu.
WriteDogusToFile writes all dogus to the given file.
WriteDogusToFileWithFormat writes all dogus to the given file using a specified format.
WriteDogusToString writes all dogus and return the string representation of the specified format.
WriteDoguToFile writes the dogu to the given file.
WriteDoguToFileWithFormat writes the dogu to the given file using a specified format.
WriteDoguToString writes the dogu and return the string representation of the specified format.

# Constants

DependencyTypeClient identifies a dogu dependency towards a dogu.json-processing client like cesapp or k8s-dogu-operator.
DependencyTypeDogu identifies a dogu dependency towards another dogu.
DependencyTypePackage identifies a dogu dependency towards an operating system package.
No description provided by the author
No description provided by the author
No description provided by the author
ExposedCommandBackupConsumer identifies a name of a core.ExposedCommand which backs up a service account consumer dogu's data during the back-up.
ExposedCommandPostBackup Deprecated: This field is no longer used.
ExposedCommandPostUpgrade identifies a name of a core.ExposedCommand which executes after a dogu upgrade.
ExposedCommandPreBackup Deprecated: This field is no longer used.
ExposedCommandPreUpgrade identifies a name of a core.ExposedCommand which executes before a dogu upgrade.
ExposedCommandServiceAccountCreate identifies a name of a core.ExposedCommand which produces a service account for other dogus.
ExposedCommandServiceAccountRemove identifies a name of a core.ExposedCommand which removes a service accounts.
ExposedCommandUpgradeNotification identifies a name of a core.ExposedCommand which informs a user of important, upcoming changes (possibly with a call for action) that should be acknowledged by the administrator.

# Variables

GetLogger is an alias function to provide a different logger for the core.

# Structs

ConfigurationField describes a single dogu configuration field which is stored in the Cloudogu EcoSystem registry.
Credentials for a remote system.
Dependency describes the quality of a dogu dependency towards another entity.
Dogu describes properties of a containerized application for the Cloudogu EcoSystem.
DoguFormatHandler is responsible for reading and writing dogus in different formats.
DoguJsonV1FormatProvider provides methods to format Dogu results compatible to v1 API.
DoguJsonV2FormatProvider provides methods to format Dogu results compatible to v2 API.
DoguV1 defines an application for the CES.
EnvironmentVariable struct represents custom parameters that can change the behaviour of a dogu build process.
ExposedCommand struct represents a command which can be executed inside the dogu.
ExposedPort struct is used to define ports which are exported to the host.
HealthCheck provide readiness and health checks for the dogu container.
Image describes properties of an image which can be used to represent the image in UI frontends.
MarketingDogu describes properties of a dogu which can be used to enhance the representation of a dogu in UI frontends.
Provider describes properties of the dogu's publisher.
ProxySettings contains the settings for http proxy.
Registry contains Cloudogu EcoSystem registration details.
Remote contains dogu registry configuration details.
No description provided by the author
ServiceAccount struct can be used to get access to another dogu.
Translations describes properties of a description of a dogu in a specific language.
ValidationDescriptor describes how to determine if a config value is valid.
Version struct can be used to extract single parts of a version number or to compare version with each other.
VersionComparator is responsible to compare versions and to check defined constraints.
Volume defines container volumes that are created during the dogu creation or upgrade.
VolumeClient adds additional information for clients to create volumes.

# Interfaces

No description provided by the author
Logger provides a simple definition of Logging methods that may be used within this project.

# Type aliases

ByDoguVersion implements sort.Interface for []Dogu to Dogus by their versions.
ByVersion implements sort.Interface for []Version to sort versions.
DoguApiVersion contains the Dog API version as integer starting with 1 (which is deprecated).
Properties describes generic properties of the dogu which are evaluated by a client like cesapp or k8s-dogu-operator.