lifecycle

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 LifecycleType = "lifecycle"

Variables

This section is empty.

Functions

func FromTrait

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

Types

type Exec

type Exec struct {
	Command []string `json:"command"`
}

Exec struct for Exec

func NewExec

func NewExec() *Exec

NewExec is short for NewExecWithDefault which instantiates a new Exec 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 NewExecEmpty

func NewExecEmpty() *Exec

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

func NewExecList

func NewExecList(ps ...*Exec) []Exec

NewExecs converts a list Exec pointers to objects. This is helpful when the SetExec requires a list of objects

func NewExecWith

func NewExecWith(command []string) *Exec

NewExecWith instantiates a new Exec 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 NewExecWithDefault

func NewExecWithDefault() *Exec

NewExecWithDefault instantiates a new Exec 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 (*Exec) GetCommand

func (o *Exec) GetCommand() []string

GetCommand returns the Command field value

func (*Exec) GetCommandOk

func (o *Exec) GetCommandOk() ([]string, bool)

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

func (Exec) MarshalJSON

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

func (*Exec) SetCommand

func (o *Exec) SetCommand(v []string) *Exec

SetCommand sets field value

func (Exec) ToMap

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

func (*Exec) Validate

func (o *Exec) Validate() error

Validate validates this Exec 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 HttpGet

type HttpGet struct {
	Host        *string       `json:"host,omitempty"`
	HttpHeaders []HttpHeaders `json:"httpHeaders,omitempty"`
	Path        *string       `json:"path,omitempty"`
	Port        *int32        `json:"port"`
	Scheme      *string       `json:"scheme"`
}

HttpGet struct for HttpGet

func NewHttpGet

func NewHttpGet() *HttpGet

NewHttpGet is short for NewHttpGetWithDefault which instantiates a new HttpGet 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 NewHttpGetEmpty

func NewHttpGetEmpty() *HttpGet

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

func NewHttpGetList

func NewHttpGetList(ps ...*HttpGet) []HttpGet

NewHttpGets converts a list HttpGet pointers to objects. This is helpful when the SetHttpGet requires a list of objects

func NewHttpGetWith

func NewHttpGetWith(port int32, scheme string) *HttpGet

NewHttpGetWith instantiates a new HttpGet 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 NewHttpGetWithDefault

func NewHttpGetWithDefault() *HttpGet

NewHttpGetWithDefault instantiates a new HttpGet 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 (*HttpGet) GetHost

func (o *HttpGet) GetHost() string

GetHost returns the Host field value if set, zero value otherwise.

func (*HttpGet) GetHostOk

func (o *HttpGet) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HttpGet) GetHttpHeaders

func (o *HttpGet) GetHttpHeaders() []HttpHeaders

GetHttpHeaders returns the HttpHeaders field value if set, zero value otherwise.

func (*HttpGet) GetHttpHeadersOk

func (o *HttpGet) GetHttpHeadersOk() ([]HttpHeaders, bool)

GetHttpHeadersOk returns a tuple with the HttpHeaders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HttpGet) GetPath

func (o *HttpGet) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*HttpGet) GetPathOk

func (o *HttpGet) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HttpGet) GetPort

func (o *HttpGet) GetPort() int32

GetPort returns the Port field value

func (*HttpGet) GetPortOk

func (o *HttpGet) GetPortOk() (*int32, bool)

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

func (*HttpGet) GetScheme

func (o *HttpGet) GetScheme() string

GetScheme returns the Scheme field value

func (*HttpGet) GetSchemeOk

func (o *HttpGet) GetSchemeOk() (*string, bool)

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

func (*HttpGet) HasHost

func (o *HttpGet) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*HttpGet) HasHttpHeaders

func (o *HttpGet) HasHttpHeaders() bool

HasHttpHeaders returns a boolean if a field has been set.

func (*HttpGet) HasPath

func (o *HttpGet) HasPath() bool

HasPath returns a boolean if a field has been set.

func (HttpGet) MarshalJSON

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

func (*HttpGet) SetHost

func (o *HttpGet) SetHost(v string) *HttpGet

SetHost gets a reference to the given string and assigns it to the host field. Host:

func (*HttpGet) SetHttpHeaders

func (o *HttpGet) SetHttpHeaders(v []HttpHeaders) *HttpGet

SetHttpHeaders gets a reference to the given []HttpHeaders and assigns it to the httpHeaders field. HttpHeaders:

func (*HttpGet) SetPath

func (o *HttpGet) SetPath(v string) *HttpGet

SetPath gets a reference to the given string and assigns it to the path field. Path:

func (*HttpGet) SetPort

func (o *HttpGet) SetPort(v int32) *HttpGet

SetPort sets field value

func (*HttpGet) SetScheme

func (o *HttpGet) SetScheme(v string) *HttpGet

SetScheme sets field value

func (HttpGet) ToMap

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

func (*HttpGet) Validate

func (o *HttpGet) Validate() error

Validate validates this HttpGet 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 HttpHeaders

type HttpHeaders struct {
	Name  *string `json:"name"`
	Value *string `json:"value"`
}

HttpHeaders struct for HttpHeaders

func NewHttpHeaders

func NewHttpHeaders() *HttpHeaders

NewHttpHeaders is short for NewHttpHeadersWithDefault which instantiates a new HttpHeaders 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 NewHttpHeadersEmpty

func NewHttpHeadersEmpty() *HttpHeaders

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

func NewHttpHeadersList

func NewHttpHeadersList(ps ...*HttpHeaders) []HttpHeaders

NewHttpHeaderss converts a list HttpHeaders pointers to objects. This is helpful when the SetHttpHeaders requires a list of objects

func NewHttpHeadersWith

func NewHttpHeadersWith(name string, value string) *HttpHeaders

NewHttpHeadersWith instantiates a new HttpHeaders 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 NewHttpHeadersWithDefault

func NewHttpHeadersWithDefault() *HttpHeaders

NewHttpHeadersWithDefault instantiates a new HttpHeaders 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 (*HttpHeaders) GetName

func (o *HttpHeaders) GetName() string

GetName returns the Name field value

func (*HttpHeaders) GetNameOk

func (o *HttpHeaders) GetNameOk() (*string, bool)

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

func (*HttpHeaders) GetValue

func (o *HttpHeaders) GetValue() string

GetValue returns the Value field value

func (*HttpHeaders) GetValueOk

func (o *HttpHeaders) GetValueOk() (*string, bool)

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

func (HttpHeaders) MarshalJSON

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

func (*HttpHeaders) SetName

func (o *HttpHeaders) SetName(v string) *HttpHeaders

SetName sets field value

func (*HttpHeaders) SetValue

func (o *HttpHeaders) SetValue(v string) *HttpHeaders

SetValue sets field value

func (HttpHeaders) ToMap

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

func (*HttpHeaders) Validate

func (o *HttpHeaders) Validate() error

Validate validates this HttpHeaders 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 LifeCycleHandler

type LifeCycleHandler struct {
	Exec      *Exec      `json:"exec,omitempty"`
	HttpGet   *HttpGet   `json:"httpGet,omitempty"`
	TcpSocket *TcpSocket `json:"tcpSocket,omitempty"`
}

LifeCycleHandler struct for LifeCycleHandler

func NewLifeCycleHandler

func NewLifeCycleHandler() *LifeCycleHandler

NewLifeCycleHandler is short for NewLifeCycleHandlerWithDefault which instantiates a new LifeCycleHandler 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 NewLifeCycleHandlerEmpty

func NewLifeCycleHandlerEmpty() *LifeCycleHandler

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

func NewLifeCycleHandlerList

func NewLifeCycleHandlerList(ps ...*LifeCycleHandler) []LifeCycleHandler

NewLifeCycleHandlers converts a list LifeCycleHandler pointers to objects. This is helpful when the SetLifeCycleHandler requires a list of objects

func NewLifeCycleHandlerWith

func NewLifeCycleHandlerWith() *LifeCycleHandler

NewLifeCycleHandlerWith instantiates a new LifeCycleHandler 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 NewLifeCycleHandlerWithDefault

func NewLifeCycleHandlerWithDefault() *LifeCycleHandler

NewLifeCycleHandlerWithDefault instantiates a new LifeCycleHandler 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 (*LifeCycleHandler) GetExec

func (o *LifeCycleHandler) GetExec() Exec

GetExec returns the Exec field value if set, zero value otherwise.

func (*LifeCycleHandler) GetExecOk

func (o *LifeCycleHandler) GetExecOk() (*Exec, bool)

GetExecOk returns a tuple with the Exec field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LifeCycleHandler) GetHttpGet

func (o *LifeCycleHandler) GetHttpGet() HttpGet

GetHttpGet returns the HttpGet field value if set, zero value otherwise.

func (*LifeCycleHandler) GetHttpGetOk

func (o *LifeCycleHandler) GetHttpGetOk() (*HttpGet, bool)

GetHttpGetOk returns a tuple with the HttpGet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LifeCycleHandler) GetTcpSocket

func (o *LifeCycleHandler) GetTcpSocket() TcpSocket

GetTcpSocket returns the TcpSocket field value if set, zero value otherwise.

func (*LifeCycleHandler) GetTcpSocketOk

func (o *LifeCycleHandler) GetTcpSocketOk() (*TcpSocket, bool)

GetTcpSocketOk returns a tuple with the TcpSocket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LifeCycleHandler) HasExec

func (o *LifeCycleHandler) HasExec() bool

HasExec returns a boolean if a field has been set.

func (*LifeCycleHandler) HasHttpGet

func (o *LifeCycleHandler) HasHttpGet() bool

HasHttpGet returns a boolean if a field has been set.

func (*LifeCycleHandler) HasTcpSocket

func (o *LifeCycleHandler) HasTcpSocket() bool

HasTcpSocket returns a boolean if a field has been set.

func (LifeCycleHandler) MarshalJSON

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

func (*LifeCycleHandler) SetExec

func (o *LifeCycleHandler) SetExec(v Exec) *LifeCycleHandler

SetExec gets a reference to the given Exec and assigns it to the exec field. Exec:

func (*LifeCycleHandler) SetHttpGet

func (o *LifeCycleHandler) SetHttpGet(v HttpGet) *LifeCycleHandler

SetHttpGet gets a reference to the given HttpGet and assigns it to the httpGet field. HttpGet:

func (*LifeCycleHandler) SetTcpSocket

func (o *LifeCycleHandler) SetTcpSocket(v TcpSocket) *LifeCycleHandler

SetTcpSocket gets a reference to the given TcpSocket and assigns it to the tcpSocket field. TcpSocket:

func (LifeCycleHandler) ToMap

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

func (*LifeCycleHandler) Validate

func (o *LifeCycleHandler) Validate() error

Validate validates this LifeCycleHandler 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 LifecycleSpec

type LifecycleSpec struct {
	PostStart *LifeCycleHandler `json:"postStart,omitempty"`
	PreStop   *LifeCycleHandler `json:"preStop,omitempty"`
}

LifecycleSpec struct for LifecycleSpec

func NewLifecycleSpec

func NewLifecycleSpec() *LifecycleSpec

NewLifecycleSpec is short for NewLifecycleSpecWithDefault which instantiates a new LifecycleSpec 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 NewLifecycleSpecEmpty

func NewLifecycleSpecEmpty() *LifecycleSpec

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

func NewLifecycleSpecList

func NewLifecycleSpecList(ps ...*LifecycleSpec) []LifecycleSpec

NewLifecycleSpecs converts a list LifecycleSpec pointers to objects. This is helpful when the SetLifecycleSpec requires a list of objects

func NewLifecycleSpecWith

func NewLifecycleSpecWith() *LifecycleSpec

NewLifecycleSpecWith instantiates a new LifecycleSpec 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 NewLifecycleSpecWithDefault

func NewLifecycleSpecWithDefault() *LifecycleSpec

NewLifecycleSpecWithDefault instantiates a new LifecycleSpec 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 (LifecycleSpec) MarshalJSON

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

func (LifecycleSpec) ToMap

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

type LifecycleTrait

type LifecycleTrait struct {
	Base       apis.TraitBase
	Properties LifecycleSpec
}

func Lifecycle

func Lifecycle() *LifecycleTrait

func (*LifecycleTrait) Build

func (*LifecycleTrait) DefType

func (l *LifecycleTrait) DefType() string

func (*LifecycleTrait) FromTrait

func (*LifecycleTrait) GetPostStart

func (o *LifecycleTrait) GetPostStart() LifeCycleHandler

GetPostStart returns the PostStart field value if set, zero value otherwise.

func (*LifecycleTrait) GetPostStartOk

func (o *LifecycleTrait) GetPostStartOk() (*LifeCycleHandler, bool)

GetPostStartOk returns a tuple with the PostStart field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LifecycleTrait) GetPreStop

func (o *LifecycleTrait) GetPreStop() LifeCycleHandler

GetPreStop returns the PreStop field value if set, zero value otherwise.

func (*LifecycleTrait) GetPreStopOk

func (o *LifecycleTrait) GetPreStopOk() (*LifeCycleHandler, bool)

GetPreStopOk returns a tuple with the PreStop field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LifecycleTrait) HasPostStart

func (o *LifecycleTrait) HasPostStart() bool

HasPostStart returns a boolean if a field has been set.

func (*LifecycleTrait) HasPreStop

func (o *LifecycleTrait) HasPreStop() bool

HasPreStop returns a boolean if a field has been set.

func (*LifecycleTrait) SetPostStart

func (o *LifecycleTrait) SetPostStart(v LifeCycleHandler) *LifecycleTrait

SetPostStart gets a reference to the given LifeCycleHandler and assigns it to the postStart field. PostStart:

func (*LifecycleTrait) SetPreStop

SetPreStop gets a reference to the given LifeCycleHandler and assigns it to the preStop field. PreStop:

func (*LifecycleTrait) Validate

func (o *LifecycleTrait) Validate() error

Validate validates this LifecycleSpec 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 NullableExec

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

func NewNullableExec

func NewNullableExec(val *Exec) *NullableExec

func (*NullableExec) Get

func (v *NullableExec) Get() *Exec

func (*NullableExec) IsSet

func (v *NullableExec) IsSet() bool

func (NullableExec) MarshalJSON

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

func (*NullableExec) Set

func (v *NullableExec) Set(val *Exec)

func (*NullableExec) UnmarshalJSON

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

func (*NullableExec) Unset

func (v *NullableExec) Unset()

type NullableHttpGet

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

func NewNullableHttpGet

func NewNullableHttpGet(val *HttpGet) *NullableHttpGet

func (*NullableHttpGet) Get

func (v *NullableHttpGet) Get() *HttpGet

func (*NullableHttpGet) IsSet

func (v *NullableHttpGet) IsSet() bool

func (NullableHttpGet) MarshalJSON

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

func (*NullableHttpGet) Set

func (v *NullableHttpGet) Set(val *HttpGet)

func (*NullableHttpGet) UnmarshalJSON

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

func (*NullableHttpGet) Unset

func (v *NullableHttpGet) Unset()

type NullableHttpHeaders

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

func NewNullableHttpHeaders

func NewNullableHttpHeaders(val *HttpHeaders) *NullableHttpHeaders

func (*NullableHttpHeaders) Get

func (v *NullableHttpHeaders) Get() *HttpHeaders

func (*NullableHttpHeaders) IsSet

func (v *NullableHttpHeaders) IsSet() bool

func (NullableHttpHeaders) MarshalJSON

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

func (*NullableHttpHeaders) Set

func (v *NullableHttpHeaders) Set(val *HttpHeaders)

func (*NullableHttpHeaders) UnmarshalJSON

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

func (*NullableHttpHeaders) Unset

func (v *NullableHttpHeaders) Unset()

type NullableLifeCycleHandler

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

func NewNullableLifeCycleHandler

func NewNullableLifeCycleHandler(val *LifeCycleHandler) *NullableLifeCycleHandler

func (*NullableLifeCycleHandler) Get

func (*NullableLifeCycleHandler) IsSet

func (v *NullableLifeCycleHandler) IsSet() bool

func (NullableLifeCycleHandler) MarshalJSON

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

func (*NullableLifeCycleHandler) Set

func (*NullableLifeCycleHandler) UnmarshalJSON

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

func (*NullableLifeCycleHandler) Unset

func (v *NullableLifeCycleHandler) Unset()

type NullableLifecycleSpec

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

func NewNullableLifecycleSpec

func NewNullableLifecycleSpec(val *LifecycleSpec) *NullableLifecycleSpec

func (*NullableLifecycleSpec) Get

func (*NullableLifecycleSpec) IsSet

func (v *NullableLifecycleSpec) IsSet() bool

func (NullableLifecycleSpec) MarshalJSON

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

func (*NullableLifecycleSpec) Set

func (v *NullableLifecycleSpec) Set(val *LifecycleSpec)

func (*NullableLifecycleSpec) UnmarshalJSON

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

func (*NullableLifecycleSpec) Unset

func (v *NullableLifecycleSpec) Unset()

type NullableTcpSocket

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

func NewNullableTcpSocket

func NewNullableTcpSocket(val *TcpSocket) *NullableTcpSocket

func (*NullableTcpSocket) Get

func (v *NullableTcpSocket) Get() *TcpSocket

func (*NullableTcpSocket) IsSet

func (v *NullableTcpSocket) IsSet() bool

func (NullableTcpSocket) MarshalJSON

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

func (*NullableTcpSocket) Set

func (v *NullableTcpSocket) Set(val *TcpSocket)

func (*NullableTcpSocket) UnmarshalJSON

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

func (*NullableTcpSocket) Unset

func (v *NullableTcpSocket) Unset()

type TcpSocket

type TcpSocket struct {
	Host *string `json:"host,omitempty"`
	Port *int32  `json:"port"`
}

TcpSocket struct for TcpSocket

func NewTcpSocket

func NewTcpSocket() *TcpSocket

NewTcpSocket is short for NewTcpSocketWithDefault which instantiates a new TcpSocket 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 NewTcpSocketEmpty

func NewTcpSocketEmpty() *TcpSocket

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

func NewTcpSocketList

func NewTcpSocketList(ps ...*TcpSocket) []TcpSocket

NewTcpSockets converts a list TcpSocket pointers to objects. This is helpful when the SetTcpSocket requires a list of objects

func NewTcpSocketWith

func NewTcpSocketWith(port int32) *TcpSocket

NewTcpSocketWith instantiates a new TcpSocket 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 NewTcpSocketWithDefault

func NewTcpSocketWithDefault() *TcpSocket

NewTcpSocketWithDefault instantiates a new TcpSocket 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 (*TcpSocket) GetHost

func (o *TcpSocket) GetHost() string

GetHost returns the Host field value if set, zero value otherwise.

func (*TcpSocket) GetHostOk

func (o *TcpSocket) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TcpSocket) GetPort

func (o *TcpSocket) GetPort() int32

GetPort returns the Port field value

func (*TcpSocket) GetPortOk

func (o *TcpSocket) GetPortOk() (*int32, bool)

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

func (*TcpSocket) HasHost

func (o *TcpSocket) HasHost() bool

HasHost returns a boolean if a field has been set.

func (TcpSocket) MarshalJSON

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

func (*TcpSocket) SetHost

func (o *TcpSocket) SetHost(v string) *TcpSocket

SetHost gets a reference to the given string and assigns it to the host field. Host:

func (*TcpSocket) SetPort

func (o *TcpSocket) SetPort(v int32) *TcpSocket

SetPort sets field value

func (TcpSocket) ToMap

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

func (*TcpSocket) Validate

func (o *TcpSocket) Validate() error

Validate validates this TcpSocket 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

Jump to

Keyboard shortcuts

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