hostalias

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HostaliasType = "hostalias"

Variables

This section is empty.

Functions

func FromTrait

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

Types

type HostAliases

type HostAliases struct {
	Hostnames []string `json:"hostnames"`
	Ip        *string  `json:"ip"`
}

HostAliases struct for HostAliases

func NewHostAliases

func NewHostAliases() *HostAliases

NewHostAliases is short for NewHostAliasesWithDefault which instantiates a new HostAliases 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 NewHostAliasesEmpty

func NewHostAliasesEmpty() *HostAliases

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

func NewHostAliasesList

func NewHostAliasesList(ps ...*HostAliases) []HostAliases

NewHostAliasess converts a list HostAliases pointers to objects. This is helpful when the SetHostAliases requires a list of objects

func NewHostAliasesWith

func NewHostAliasesWith(hostnames []string, ip string) *HostAliases

NewHostAliasesWith instantiates a new HostAliases 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 NewHostAliasesWithDefault

func NewHostAliasesWithDefault() *HostAliases

NewHostAliasesWithDefault instantiates a new HostAliases 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 (*HostAliases) GetHostnames

func (o *HostAliases) GetHostnames() []string

GetHostnames returns the Hostnames field value

func (*HostAliases) GetHostnamesOk

func (o *HostAliases) GetHostnamesOk() ([]string, bool)

GetHostnamesOk returns a tuple with the Hostnames field value and a boolean to check if the value has been set.

func (*HostAliases) GetIp

func (o *HostAliases) GetIp() string

GetIp returns the Ip field value

func (*HostAliases) GetIpOk

func (o *HostAliases) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value and a boolean to check if the value has been set.

func (HostAliases) MarshalJSON

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

func (*HostAliases) SetHostnames

func (o *HostAliases) SetHostnames(v []string) *HostAliases

SetHostnames sets field value

func (*HostAliases) SetIp

func (o *HostAliases) SetIp(v string) *HostAliases

SetIp sets field value

func (HostAliases) ToMap

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

func (*HostAliases) Validate

func (o *HostAliases) Validate() error

Validate validates this HostAliases 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 HostaliasSpec

type HostaliasSpec struct {
	// Specify the hostAliases to add
	HostAliases []HostAliases `json:"hostAliases"`
}

HostaliasSpec struct for HostaliasSpec

func NewHostaliasSpec

func NewHostaliasSpec() *HostaliasSpec

NewHostaliasSpec is short for NewHostaliasSpecWithDefault which instantiates a new HostaliasSpec 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 NewHostaliasSpecEmpty

func NewHostaliasSpecEmpty() *HostaliasSpec

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

func NewHostaliasSpecList

func NewHostaliasSpecList(ps ...*HostaliasSpec) []HostaliasSpec

NewHostaliasSpecs converts a list HostaliasSpec pointers to objects. This is helpful when the SetHostaliasSpec requires a list of objects

func NewHostaliasSpecWith

func NewHostaliasSpecWith(hostAliases []HostAliases) *HostaliasSpec

NewHostaliasSpecWith instantiates a new HostaliasSpec 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 NewHostaliasSpecWithDefault

func NewHostaliasSpecWithDefault() *HostaliasSpec

NewHostaliasSpecWithDefault instantiates a new HostaliasSpec 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 (HostaliasSpec) MarshalJSON

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

func (HostaliasSpec) ToMap

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

type HostaliasTrait

type HostaliasTrait struct {
	Base       apis.TraitBase
	Properties HostaliasSpec
}

func Hostalias

func Hostalias() *HostaliasTrait

func (*HostaliasTrait) Build

func (*HostaliasTrait) DefType

func (h *HostaliasTrait) DefType() string

func (*HostaliasTrait) FromTrait

func (*HostaliasTrait) GetHostAliases

func (o *HostaliasTrait) GetHostAliases() []HostAliases

GetHostAliases returns the HostAliases field value

func (*HostaliasTrait) GetHostAliasesOk

func (o *HostaliasTrait) GetHostAliasesOk() ([]HostAliases, bool)

GetHostAliasesOk returns a tuple with the HostAliases field value and a boolean to check if the value has been set.

func (*HostaliasTrait) SetHostAliases

func (o *HostaliasTrait) SetHostAliases(v []HostAliases) *HostaliasTrait

SetHostAliases sets field value

func (*HostaliasTrait) Validate

func (o *HostaliasTrait) Validate() error

Validate validates this HostaliasSpec 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 NullableHostAliases

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

func NewNullableHostAliases

func NewNullableHostAliases(val *HostAliases) *NullableHostAliases

func (*NullableHostAliases) Get

func (v *NullableHostAliases) Get() *HostAliases

func (*NullableHostAliases) IsSet

func (v *NullableHostAliases) IsSet() bool

func (NullableHostAliases) MarshalJSON

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

func (*NullableHostAliases) Set

func (v *NullableHostAliases) Set(val *HostAliases)

func (*NullableHostAliases) UnmarshalJSON

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

func (*NullableHostAliases) Unset

func (v *NullableHostAliases) Unset()

type NullableHostaliasSpec

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

func NewNullableHostaliasSpec

func NewNullableHostaliasSpec(val *HostaliasSpec) *NullableHostaliasSpec

func (*NullableHostaliasSpec) Get

func (*NullableHostaliasSpec) IsSet

func (v *NullableHostaliasSpec) IsSet() bool

func (NullableHostaliasSpec) MarshalJSON

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

func (*NullableHostaliasSpec) Set

func (v *NullableHostaliasSpec) Set(val *HostaliasSpec)

func (*NullableHostaliasSpec) UnmarshalJSON

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

func (*NullableHostaliasSpec) Unset

func (v *NullableHostaliasSpec) Unset()

Jump to

Keyboard shortcuts

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