annotations

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationsType = "annotations"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

Types

type AnnotationsSpec

type AnnotationsSpec struct {
}

AnnotationsSpec struct for AnnotationsSpec

func NewAnnotationsSpec

func NewAnnotationsSpec() *AnnotationsSpec

NewAnnotationsSpec is short for NewAnnotationsSpecWithDefault which instantiates a new AnnotationsSpec object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewAnnotationsSpecEmpty

func NewAnnotationsSpecEmpty() *AnnotationsSpec

NewAnnotationsSpecEmpty instantiates a new AnnotationsSpec object with no properties set. This constructor will not assign any default values to properties.

func NewAnnotationsSpecList

func NewAnnotationsSpecList(ps ...*AnnotationsSpec) []AnnotationsSpec

NewAnnotationsSpecs converts a list AnnotationsSpec pointers to objects. This is helpful when the SetAnnotationsSpec requires a list of objects

func NewAnnotationsSpecWith

func NewAnnotationsSpecWith() *AnnotationsSpec

NewAnnotationsSpecWith instantiates a new AnnotationsSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewAnnotationsSpecWithDefault

func NewAnnotationsSpecWithDefault() *AnnotationsSpec

NewAnnotationsSpecWithDefault instantiates a new AnnotationsSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (AnnotationsSpec) MarshalJSON

func (o AnnotationsSpec) MarshalJSON() ([]byte, error)

func (AnnotationsSpec) ToMap

func (o AnnotationsSpec) ToMap() (map[string]interface{}, error)

type AnnotationsTrait

type AnnotationsTrait struct {
	Base       apis.TraitBase
	Properties AnnotationsSpec
}

func Annotations

func Annotations() *AnnotationsTrait

func (*AnnotationsTrait) Build

func (*AnnotationsTrait) DefType

func (a *AnnotationsTrait) DefType() string

func (*AnnotationsTrait) FromTrait

func (*AnnotationsTrait) Validate

func (o *AnnotationsTrait) Validate() error

Validate validates this AnnotationsSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type NullableAnnotationsSpec

type NullableAnnotationsSpec struct {
	// contains filtered or unexported fields
}

func NewNullableAnnotationsSpec

func NewNullableAnnotationsSpec(val *AnnotationsSpec) *NullableAnnotationsSpec

func (*NullableAnnotationsSpec) Get

func (*NullableAnnotationsSpec) IsSet

func (v *NullableAnnotationsSpec) IsSet() bool

func (NullableAnnotationsSpec) MarshalJSON

func (v NullableAnnotationsSpec) MarshalJSON() ([]byte, error)

func (*NullableAnnotationsSpec) Set

func (*NullableAnnotationsSpec) UnmarshalJSON

func (v *NullableAnnotationsSpec) UnmarshalJSON(src []byte) error

func (*NullableAnnotationsSpec) Unset

func (v *NullableAnnotationsSpec) Unset()

Jump to

Keyboard shortcuts

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