Documentation
¶
Overview ¶
Package openslo defines the OpenSLO specification general definitions. These definitions are shared across all versions of the specification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind string
Kind represents all the object kinds defined by OpenSLO specification. Keep in mind not all specification versions support every Kind.
func (*Kind) UnmarshalText ¶
UnmarshalText implements the text encoding.TextUnmarshaler interface.
type Object ¶
type Object interface {
fmt.Stringer
// GetVersion returns the API [Version] of the [Object].
GetVersion() Version
// GetKind returns the [Kind] of the [Object].
GetKind() Kind
// GetName returns the name of the [Object].
GetName() string
// Validate performs static validation of the [Object].
Validate() error
}
Object represents a generic OpenSLO object definition. All OpenSLO objects implement this interface.
type ObjectValidator ¶ added in v0.7.0
type ObjectValidator[T Object] interface { // GetValidator returns a fully initialized [govy.Validator] instance for this specific [Object]. GetValidator() govy.Validator[T] }
ObjectValidator is an interface implemented by every Object. It is separated from the Object interface in order to keep the latter non-generic.
type Version ¶
type Version string
Version represents a version of the OpenSLO specification.
func ParseVersion ¶ added in v0.3.0
func (*Version) UnmarshalText ¶
UnmarshalText implements the text encoding.TextUnmarshaler interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package v1 contains the OpenSLO specification version v1alpha definitions.
|
Package v1 contains the OpenSLO specification version v1alpha definitions. |
|
Package v1alpha defines the OpenSLO specification version v1alpha definitions.
|
Package v1alpha defines the OpenSLO specification version v1alpha definitions. |
|
Package v2alpha contains the OpenSLO specification version v2alpha definitions.
|
Package v2alpha contains the OpenSLO specification version v2alpha definitions. |