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 AddressInfo
- type AuthTypes
- type ContainerInfo
- type ContainerPortInfo
- type GatewayInfo
- type HttpRoute
- type Ingress
- type IngressReport
- type LoadBalancer
- type NamespaceInfo
- type Node
- type NodeInfo
- type NodeReport
- type Pod
- type PodInfo
- type PodReport
- type ProtocolTypes
- type RouteInfo
- type SecurityContextInfo
- type Service
- type ServiceInfo
- type ServiceReport
- type StateTypes
- type StatusInfo
- 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 AddressInfo ¶ added in v0.0.9
type AddressInfo struct { Type string `json:"type" url:"type"` Address string `json:"address" url:"address"` // contains filtered or unexported fields }
func (*AddressInfo) GetExtraProperties ¶ added in v0.0.9
func (a *AddressInfo) GetExtraProperties() map[string]interface{}
func (*AddressInfo) String ¶ added in v0.0.9
func (a *AddressInfo) String() string
func (*AddressInfo) UnmarshalJSON ¶ added in v0.0.9
func (a *AddressInfo) UnmarshalJSON(data []byte) error
type AuthTypes ¶ added in v0.0.6
type AuthTypes string
func NewAuthTypesFromString ¶ added in v0.0.6
type ContainerInfo ¶ added in v0.0.9
type ContainerInfo struct { Name string `json:"name" url:"name"` Image string `json:"image" url:"image"` Ports []*ContainerPortInfo `json:"ports,omitempty" url:"ports,omitempty"` SecurityContext *SecurityContextInfo `json:"securityContext,omitempty" url:"securityContext,omitempty"` // contains filtered or unexported fields }
func (*ContainerInfo) GetExtraProperties ¶ added in v0.0.9
func (c *ContainerInfo) GetExtraProperties() map[string]interface{}
func (*ContainerInfo) String ¶ added in v0.0.9
func (c *ContainerInfo) String() string
func (*ContainerInfo) UnmarshalJSON ¶ added in v0.0.9
func (c *ContainerInfo) UnmarshalJSON(data []byte) error
type ContainerPortInfo ¶ added in v0.0.9
type ContainerPortInfo struct { Port int `json:"port" url:"port"` Protocol ProtocolTypes `json:"protocol" url:"protocol"` // contains filtered or unexported fields }
func (*ContainerPortInfo) GetExtraProperties ¶ added in v0.0.9
func (c *ContainerPortInfo) GetExtraProperties() map[string]interface{}
func (*ContainerPortInfo) String ¶ added in v0.0.9
func (c *ContainerPortInfo) String() string
func (*ContainerPortInfo) UnmarshalJSON ¶ added in v0.0.9
func (c *ContainerPortInfo) UnmarshalJSON(data []byte) error
type GatewayInfo ¶ added in v0.0.8
type GatewayInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` // contains filtered or unexported fields }
func (*GatewayInfo) GetExtraProperties ¶ added in v0.0.8
func (g *GatewayInfo) GetExtraProperties() map[string]interface{}
func (*GatewayInfo) String ¶ added in v0.0.8
func (g *GatewayInfo) String() string
func (*GatewayInfo) UnmarshalJSON ¶ added in v0.0.8
func (g *GatewayInfo) UnmarshalJSON(data []byte) error
type HttpRoute ¶ added in v0.0.3
type HttpRoute struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` Gateways []*GatewayInfo `json:"gateways,omitempty" url:"gateways,omitempty"` Paths []*RouteInfo `json:"paths,omitempty" url:"paths,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 (*HttpRoute) GetExtraProperties ¶ added in v0.0.3
func (*HttpRoute) UnmarshalJSON ¶ added in v0.0.3
type Ingress ¶
type Ingress struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` Rules []*RouteInfo `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 { HttpRoutes []*HttpRoute `json:"httpRoutes,omitempty" url:"httpRoutes,omitempty"` Ingresses []*Ingress `json:"ingresses,omitempty" url:"ingresses,omitempty"` LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty" url:"loadBalancers,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` AuthType AuthTypes `json:"authType" url:"authType"` 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 LoadBalancer ¶ added in v0.0.9
type LoadBalancer struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` Paths []*RouteInfo `json:"paths,omitempty" url:"paths,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 (*LoadBalancer) GetExtraProperties ¶ added in v0.0.9
func (l *LoadBalancer) GetExtraProperties() map[string]interface{}
func (*LoadBalancer) String ¶ added in v0.0.9
func (l *LoadBalancer) String() string
func (*LoadBalancer) UnmarshalJSON ¶ added in v0.0.9
func (l *LoadBalancer) UnmarshalJSON(data []byte) error
type NamespaceInfo ¶ added in v0.0.8
type NamespaceInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` // contains filtered or unexported fields }
func (*NamespaceInfo) GetExtraProperties ¶ added in v0.0.8
func (n *NamespaceInfo) GetExtraProperties() map[string]interface{}
func (*NamespaceInfo) String ¶ added in v0.0.8
func (n *NamespaceInfo) String() string
func (*NamespaceInfo) UnmarshalJSON ¶ added in v0.0.8
func (n *NamespaceInfo) UnmarshalJSON(data []byte) error
type Node ¶
type Node struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Arch string `json:"arch" url:"arch"` Image string `json:"image" url:"image"` Os string `json:"os" url:"os"` Version *string `json:"version,omitempty" url:"version,omitempty"` State StateTypes `json:"state" url:"state"` Instancetype *string `json:"instancetype,omitempty" url:"instancetype,omitempty"` Addresses []*AddressInfo `json:"addresses,omitempty" url:"addresses,omitempty"` // contains filtered or unexported fields }
func (*Node) GetExtraProperties ¶
func (*Node) UnmarshalJSON ¶
type NodeInfo ¶ added in v0.0.9
type NodeInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` // contains filtered or unexported fields }
func (*NodeInfo) GetExtraProperties ¶ added in v0.0.9
func (*NodeInfo) UnmarshalJSON ¶ added in v0.0.9
type NodeReport ¶
type NodeReport struct { Nodes []*Node `json:"nodes,omitempty" url:"nodes,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` AuthType AuthTypes `json:"authType" url:"authType"` 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"` Version string `json:"version" url:"version"` Status *StatusInfo `json:"status,omitempty" url:"status,omitempty"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` Node *NodeInfo `json:"node,omitempty" url:"node,omitempty"` Containers []*ContainerInfo `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 PodInfo ¶ added in v0.0.9
type PodInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` // contains filtered or unexported fields }
func (*PodInfo) GetExtraProperties ¶ added in v0.0.9
func (*PodInfo) UnmarshalJSON ¶ added in v0.0.9
type PodReport ¶
type PodReport struct { Pods []*Pod `json:"pods,omitempty" url:"pods,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` AuthType AuthTypes `json:"authType" url:"authType"` 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 RouteInfo ¶ added in v0.0.9
type RouteInfo struct { Path string `json:"path" url:"path"` Base string `json:"base" url:"base"` Port *string `json:"port,omitempty" url:"port,omitempty"` Service *ServiceInfo `json:"service,omitempty" url:"service,omitempty"` // contains filtered or unexported fields }
func (*RouteInfo) GetExtraProperties ¶ added in v0.0.9
func (*RouteInfo) UnmarshalJSON ¶ added in v0.0.9
type SecurityContextInfo ¶ added in v0.0.9
type SecurityContextInfo 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 (*SecurityContextInfo) GetExtraProperties ¶ added in v0.0.9
func (s *SecurityContextInfo) GetExtraProperties() map[string]interface{}
func (*SecurityContextInfo) String ¶ added in v0.0.9
func (s *SecurityContextInfo) String() string
func (*SecurityContextInfo) UnmarshalJSON ¶ added in v0.0.9
func (s *SecurityContextInfo) UnmarshalJSON(data []byte) error
type Service ¶
type Service struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` Type string `json:"type" url:"type"` Pods []*PodInfo `json:"pods,omitempty" url:"pods,omitempty"` Selectors map[string]string `json:"selectors,omitempty" url:"selectors,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 (*Service) GetExtraProperties ¶
func (*Service) UnmarshalJSON ¶
type ServiceInfo ¶ added in v0.0.8
type ServiceInfo struct { Uid string `json:"uid" url:"uid"` Name string `json:"name" url:"name"` Namespace *NamespaceInfo `json:"namespace,omitempty" url:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ServiceInfo) GetExtraProperties ¶ added in v0.0.8
func (s *ServiceInfo) GetExtraProperties() map[string]interface{}
func (*ServiceInfo) String ¶ added in v0.0.8
func (s *ServiceInfo) String() string
func (*ServiceInfo) UnmarshalJSON ¶ added in v0.0.8
func (s *ServiceInfo) UnmarshalJSON(data []byte) error
type ServiceReport ¶
type ServiceReport struct { Services []*Service `json:"services,omitempty" url:"services,omitempty"` ClusterUrl *string `json:"clusterUrl,omitempty" url:"clusterUrl,omitempty"` AuthType AuthTypes `json:"authType" url:"authType"` 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 StatusInfo ¶ added in v0.0.9
type StatusInfo 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 (*StatusInfo) GetExtraProperties ¶ added in v0.0.9
func (s *StatusInfo) GetExtraProperties() map[string]interface{}
func (*StatusInfo) String ¶ added in v0.0.9
func (s *StatusInfo) String() string
func (*StatusInfo) UnmarshalJSON ¶ added in v0.0.9
func (s *StatusInfo) UnmarshalJSON(data []byte) error
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.