Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Complex128(c complex128) *complex128
- func Complex64(c complex64) *complex64
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int8(i int8) *int8
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uint8(u uint8) *uint8
- func Uintptr(u uintptr) *uintptr
- type Address
- type Container
- type ContainerPort
- type Gateway
- type Ingress
- type IngressReport
- type Node
- type NodeReport
- type Pod
- type PodReport
- type ProtocolTypes
- type Rule
- type SecurityContext
- type Service
- type ServiceReport
- type StateTypes
- type Status
- type StatusTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type Address ¶
type Address struct { Type string `json:"type" url:"type"` Address string `json:"address" url:"address"` // contains filtered or unexported fields }
func (*Address) GetExtraProperties ¶
func (*Address) UnmarshalJSON ¶
type Container ¶
type Container struct { Name string `json:"name" url:"name"` Image string `json:"image" url:"image"` Ports []*ContainerPort `json:"ports,omitempty" url:"ports,omitempty"` SecurityContext *SecurityContext `json:"securityContext,omitempty" url:"securityContext,omitempty"` // contains filtered or unexported fields }
func (*Container) GetExtraProperties ¶
func (*Container) UnmarshalJSON ¶
type ContainerPort ¶
type ContainerPort struct { Port int `json:"port" url:"port"` Protocol ProtocolTypes `json:"protocol" url:"protocol"` // contains filtered or unexported fields }
func (*ContainerPort) GetExtraProperties ¶
func (c *ContainerPort) GetExtraProperties() map[string]interface{}
func (*ContainerPort) String ¶
func (c *ContainerPort) String() string
func (*ContainerPort) UnmarshalJSON ¶
func (c *ContainerPort) UnmarshalJSON(data []byte) error
type Gateway ¶
type Gateway struct { Name string `json:"name" url:"name"` Namespace string `json:"namespace" url:"namespace"` Listeners []string `json:"listeners,omitempty" url:"listeners,omitempty"` Annotations map[string]string `json:"annotations,omitempty" url:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty" url:"labels,omitempty"` // contains filtered or unexported fields }
func (*Gateway) GetExtraProperties ¶
func (*Gateway) UnmarshalJSON ¶
type Ingress ¶
type Ingress struct { Name string `json:"name" url:"name"` Namespace string `json:"namespace" url:"namespace"` Rules []*Rule `json:"rules,omitempty" url:"rules,omitempty"` Annotations map[string]string `json:"annotations,omitempty" url:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty" url:"labels,omitempty"` // contains filtered or unexported fields }
func (*Ingress) GetExtraProperties ¶
func (*Ingress) UnmarshalJSON ¶
type IngressReport ¶
type IngressReport struct { Gateways []*Gateway `json:"gateways,omitempty" url:"gateways,omitempty"` Ingresses []*Ingress `json:"ingresses,omitempty" url:"ingresses,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*IngressReport) GetExtraProperties ¶
func (i *IngressReport) GetExtraProperties() map[string]interface{}
func (*IngressReport) String ¶
func (i *IngressReport) String() string
func (*IngressReport) UnmarshalJSON ¶
func (i *IngressReport) UnmarshalJSON(data []byte) error
type Node ¶
type Node struct { Name string `json:"name" url:"name"` Arch *string `json:"arch,omitempty" url:"arch,omitempty"` Image string `json:"image" url:"image"` Os string `json:"os" url:"os"` Instancetype *string `json:"instancetype,omitempty" url:"instancetype,omitempty"` State StateTypes `json:"state" url:"state"` Addresses []*Address `json:"addresses,omitempty" url:"addresses,omitempty"` // contains filtered or unexported fields }
func (*Node) GetExtraProperties ¶
func (*Node) UnmarshalJSON ¶
type NodeReport ¶
type NodeReport struct { Nodes []*Node `json:"nodes,omitempty" url:"nodes,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*NodeReport) GetExtraProperties ¶
func (n *NodeReport) GetExtraProperties() map[string]interface{}
func (*NodeReport) String ¶
func (n *NodeReport) String() string
func (*NodeReport) UnmarshalJSON ¶
func (n *NodeReport) UnmarshalJSON(data []byte) error
type Pod ¶
type Pod struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace string `json:"namespace" url:"namespace"` Version *string `json:"version,omitempty" url:"version,omitempty"` Node string `json:"node" url:"node"` Status *Status `json:"status,omitempty" url:"status,omitempty"` Containers []*Container `json:"containers,omitempty" url:"containers,omitempty"` Labels map[string]string `json:"labels,omitempty" url:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty" url:"annotations,omitempty"` // contains filtered or unexported fields }
func (*Pod) GetExtraProperties ¶
func (*Pod) UnmarshalJSON ¶
type PodReport ¶
type PodReport struct { Pods []*Pod `json:"pods,omitempty" url:"pods,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*PodReport) GetExtraProperties ¶
func (*PodReport) UnmarshalJSON ¶
type ProtocolTypes ¶
type ProtocolTypes string
const ( ProtocolTypesHttp ProtocolTypes = "HTTP" ProtocolTypesHttps ProtocolTypes = "HTTPS" ProtocolTypesTcp ProtocolTypes = "TCP" ProtocolTypesTls ProtocolTypes = "TLS" ProtocolTypesUdp ProtocolTypes = "UDP" ProtocolTypesTcpUdp ProtocolTypes = "TCP_UDP" ProtocolTypesGeneve ProtocolTypes = "GENEVE" ProtocolTypesUndefined ProtocolTypes = "UNDEFINED" )
func NewProtocolTypesFromString ¶
func NewProtocolTypesFromString(s string) (ProtocolTypes, error)
func (ProtocolTypes) Ptr ¶
func (p ProtocolTypes) Ptr() *ProtocolTypes
type Rule ¶
type Rule struct { Host string `json:"host" url:"host"` Path string `json:"path" url:"path"` ServiceName string `json:"serviceName" url:"serviceName"` ServicePort *string `json:"servicePort,omitempty" url:"servicePort,omitempty"` // contains filtered or unexported fields }
func (*Rule) GetExtraProperties ¶
func (*Rule) UnmarshalJSON ¶
type SecurityContext ¶
type SecurityContext struct { RunAsRoot *bool `json:"runAsRoot,omitempty" url:"runAsRoot,omitempty"` AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" url:"allowPrivilegeEscalation,omitempty"` ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty" url:"readOnlyRootFilesystem,omitempty"` // contains filtered or unexported fields }
func (*SecurityContext) GetExtraProperties ¶
func (s *SecurityContext) GetExtraProperties() map[string]interface{}
func (*SecurityContext) String ¶
func (s *SecurityContext) String() string
func (*SecurityContext) UnmarshalJSON ¶
func (s *SecurityContext) UnmarshalJSON(data []byte) error
type Service ¶
type Service struct { Name string `json:"name" url:"name"` Namespace string `json:"namespace" url:"namespace"` Type string `json:"type" url:"type"` ManagedBy *string `json:"managedBy,omitempty" url:"managedBy,omitempty"` Pods []string `json:"pods,omitempty" url:"pods,omitempty"` Annotations map[string]string `json:"annotations,omitempty" url:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty" url:"labels,omitempty"` Selectors map[string]string `json:"selectors,omitempty" url:"selectors,omitempty"` // contains filtered or unexported fields }
func (*Service) GetExtraProperties ¶
func (*Service) UnmarshalJSON ¶
type ServiceReport ¶
type ServiceReport struct { Services []*Service `json:"services,omitempty" url:"services,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` Errors []string `json:"errors,omitempty" url:"errors,omitempty"` // contains filtered or unexported fields }
func (*ServiceReport) GetExtraProperties ¶
func (s *ServiceReport) GetExtraProperties() map[string]interface{}
func (*ServiceReport) String ¶
func (s *ServiceReport) String() string
func (*ServiceReport) UnmarshalJSON ¶
func (s *ServiceReport) UnmarshalJSON(data []byte) error
type StateTypes ¶ added in v0.0.2
type StateTypes string
const ( StateTypesRunning StateTypes = "Running" StateTypesStopped StateTypes = "Stopped" )
func NewStateTypesFromString ¶ added in v0.0.2
func NewStateTypesFromString(s string) (StateTypes, error)
func (StateTypes) Ptr ¶ added in v0.0.2
func (s StateTypes) Ptr() *StateTypes
type Status ¶
type Status struct { Status StatusTypes `json:"status" url:"status"` PodIp *string `json:"podIp,omitempty" url:"podIp,omitempty"` HostIp *string `json:"hostIp,omitempty" url:"hostIp,omitempty"` // contains filtered or unexported fields }
func (*Status) GetExtraProperties ¶
func (*Status) UnmarshalJSON ¶
type StatusTypes ¶
type StatusTypes string
const ( StatusTypesPending StatusTypes = "Pending" StatusTypesRunning StatusTypes = "Running" StatusTypesSucceeded StatusTypes = "Succeeded" StatusTypesFailed StatusTypes = "Failed" StatusTypesUnknown StatusTypes = "Unknown" )
func NewStatusTypesFromString ¶
func NewStatusTypesFromString(s string) (StatusTypes, error)
func (StatusTypes) Ptr ¶
func (s StatusTypes) Ptr() *StatusTypes
Click to show internal directories.
Click to hide internal directories.