methodk8s

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

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) GetAddress added in v0.0.11

func (a *AddressInfo) GetAddress() string

func (*AddressInfo) GetExtraProperties added in v0.0.9

func (a *AddressInfo) GetExtraProperties() map[string]interface{}

func (*AddressInfo) GetType added in v0.0.11

func (a *AddressInfo) GetType() string

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
const (
	AuthTypesKubeconfig         AuthTypes = "KUBECONFIG"
	AuthTypesTokenWithCaCert    AuthTypes = "TOKEN_WITH_CA_CERT"
	AuthTypesTokenWithoutCaCert AuthTypes = "TOKEN_WITHOUT_CA_CERT"
	AuthTypesUnauthenticated    AuthTypes = "UNAUTHENTICATED"
	AuthTypesUnknown            AuthTypes = "UNKNOWN"
)

func NewAuthTypesFromString added in v0.0.6

func NewAuthTypesFromString(s string) (AuthTypes, error)

func (AuthTypes) Ptr added in v0.0.6

func (a AuthTypes) Ptr() *AuthTypes

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) GetImage added in v0.0.11

func (c *ContainerInfo) GetImage() string

func (*ContainerInfo) GetName added in v0.0.11

func (c *ContainerInfo) GetName() string

func (*ContainerInfo) GetPorts added in v0.0.11

func (c *ContainerInfo) GetPorts() []*ContainerPortInfo

func (*ContainerInfo) GetSecurityContext added in v0.0.11

func (c *ContainerInfo) GetSecurityContext() *SecurityContextInfo

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) GetPort added in v0.0.11

func (c *ContainerPortInfo) GetPort() int

func (*ContainerPortInfo) GetProtocol added in v0.0.11

func (c *ContainerPortInfo) GetProtocol() ProtocolTypes

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 FileParam added in v0.0.11

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam added in v0.0.11

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType added in v0.0.11

func (f *FileParam) ContentType() string

func (*FileParam) Name added in v0.0.11

func (f *FileParam) Name() string

type FileParamOption added in v0.0.11

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

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) GetName added in v0.0.11

func (g *GatewayInfo) GetName() string

func (*GatewayInfo) GetNamespace added in v0.0.11

func (g *GatewayInfo) GetNamespace() *NamespaceInfo

func (*GatewayInfo) GetUid added in v0.0.11

func (g *GatewayInfo) GetUid() string

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) GetAnnotations added in v0.0.11

func (h *HttpRoute) GetAnnotations() map[string]string

func (*HttpRoute) GetExtraProperties added in v0.0.3

func (h *HttpRoute) GetExtraProperties() map[string]interface{}

func (*HttpRoute) GetGateways added in v0.0.11

func (h *HttpRoute) GetGateways() []*GatewayInfo

func (*HttpRoute) GetLabels added in v0.0.11

func (h *HttpRoute) GetLabels() map[string]string

func (*HttpRoute) GetName added in v0.0.11

func (h *HttpRoute) GetName() string

func (*HttpRoute) GetNamespace added in v0.0.11

func (h *HttpRoute) GetNamespace() *NamespaceInfo

func (*HttpRoute) GetPaths added in v0.0.11

func (h *HttpRoute) GetPaths() []*RouteInfo

func (*HttpRoute) GetUid added in v0.0.11

func (h *HttpRoute) GetUid() string

func (*HttpRoute) String added in v0.0.3

func (h *HttpRoute) String() string

func (*HttpRoute) UnmarshalJSON added in v0.0.3

func (h *HttpRoute) UnmarshalJSON(data []byte) error

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) GetAnnotations added in v0.0.11

func (i *Ingress) GetAnnotations() map[string]string

func (*Ingress) GetExtraProperties

func (i *Ingress) GetExtraProperties() map[string]interface{}

func (*Ingress) GetLabels added in v0.0.11

func (i *Ingress) GetLabels() map[string]string

func (*Ingress) GetName added in v0.0.11

func (i *Ingress) GetName() string

func (*Ingress) GetNamespace added in v0.0.11

func (i *Ingress) GetNamespace() *NamespaceInfo

func (*Ingress) GetRules added in v0.0.11

func (i *Ingress) GetRules() []*RouteInfo

func (*Ingress) GetUid added in v0.0.11

func (i *Ingress) GetUid() string

func (*Ingress) String

func (i *Ingress) String() string

func (*Ingress) UnmarshalJSON

func (i *Ingress) UnmarshalJSON(data []byte) error

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) GetAuthType added in v0.0.11

func (i *IngressReport) GetAuthType() AuthTypes

func (*IngressReport) GetClusterUrl added in v0.0.11

func (i *IngressReport) GetClusterUrl() *string

func (*IngressReport) GetErrors added in v0.0.11

func (i *IngressReport) GetErrors() []string

func (*IngressReport) GetExtraProperties

func (i *IngressReport) GetExtraProperties() map[string]interface{}

func (*IngressReport) GetHttpRoutes added in v0.0.11

func (i *IngressReport) GetHttpRoutes() []*HttpRoute

func (*IngressReport) GetIngresses added in v0.0.11

func (i *IngressReport) GetIngresses() []*Ingress

func (*IngressReport) GetLoadBalancers added in v0.0.11

func (i *IngressReport) GetLoadBalancers() []*LoadBalancer

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) GetAnnotations added in v0.0.11

func (l *LoadBalancer) GetAnnotations() map[string]string

func (*LoadBalancer) GetExtraProperties added in v0.0.9

func (l *LoadBalancer) GetExtraProperties() map[string]interface{}

func (*LoadBalancer) GetLabels added in v0.0.11

func (l *LoadBalancer) GetLabels() map[string]string

func (*LoadBalancer) GetName added in v0.0.11

func (l *LoadBalancer) GetName() string

func (*LoadBalancer) GetNamespace added in v0.0.11

func (l *LoadBalancer) GetNamespace() *NamespaceInfo

func (*LoadBalancer) GetPaths added in v0.0.11

func (l *LoadBalancer) GetPaths() []*RouteInfo

func (*LoadBalancer) GetUid added in v0.0.11

func (l *LoadBalancer) GetUid() string

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) GetName added in v0.0.11

func (n *NamespaceInfo) GetName() string

func (*NamespaceInfo) GetUid added in v0.0.11

func (n *NamespaceInfo) GetUid() string

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) GetAddresses added in v0.0.11

func (n *Node) GetAddresses() []*AddressInfo

func (*Node) GetArch added in v0.0.11

func (n *Node) GetArch() string

func (*Node) GetExtraProperties

func (n *Node) GetExtraProperties() map[string]interface{}

func (*Node) GetImage added in v0.0.11

func (n *Node) GetImage() string

func (*Node) GetInstancetype added in v0.0.11

func (n *Node) GetInstancetype() *string

func (*Node) GetName added in v0.0.11

func (n *Node) GetName() string

func (*Node) GetOs added in v0.0.11

func (n *Node) GetOs() string

func (*Node) GetState added in v0.0.11

func (n *Node) GetState() StateTypes

func (*Node) GetUid added in v0.0.11

func (n *Node) GetUid() string

func (*Node) GetVersion added in v0.0.11

func (n *Node) GetVersion() *string

func (*Node) String

func (n *Node) String() string

func (*Node) UnmarshalJSON

func (n *Node) UnmarshalJSON(data []byte) error

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 (n *NodeInfo) GetExtraProperties() map[string]interface{}

func (*NodeInfo) GetName added in v0.0.11

func (n *NodeInfo) GetName() string

func (*NodeInfo) GetUid added in v0.0.11

func (n *NodeInfo) GetUid() string

func (*NodeInfo) String added in v0.0.9

func (n *NodeInfo) String() string

func (*NodeInfo) UnmarshalJSON added in v0.0.9

func (n *NodeInfo) UnmarshalJSON(data []byte) error

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) GetAuthType added in v0.0.11

func (n *NodeReport) GetAuthType() AuthTypes

func (*NodeReport) GetClusterUrl added in v0.0.11

func (n *NodeReport) GetClusterUrl() *string

func (*NodeReport) GetErrors added in v0.0.11

func (n *NodeReport) GetErrors() []string

func (*NodeReport) GetExtraProperties

func (n *NodeReport) GetExtraProperties() map[string]interface{}

func (*NodeReport) GetNodes added in v0.0.11

func (n *NodeReport) GetNodes() []*Node

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) GetAnnotations added in v0.0.11

func (p *Pod) GetAnnotations() map[string]string

func (*Pod) GetContainers added in v0.0.11

func (p *Pod) GetContainers() []*ContainerInfo

func (*Pod) GetExtraProperties

func (p *Pod) GetExtraProperties() map[string]interface{}

func (*Pod) GetLabels added in v0.0.11

func (p *Pod) GetLabels() map[string]string

func (*Pod) GetName added in v0.0.11

func (p *Pod) GetName() string

func (*Pod) GetNamespace added in v0.0.11

func (p *Pod) GetNamespace() *NamespaceInfo

func (*Pod) GetNode added in v0.0.11

func (p *Pod) GetNode() *NodeInfo

func (*Pod) GetStatus added in v0.0.11

func (p *Pod) GetStatus() *StatusInfo

func (*Pod) GetUid added in v0.0.11

func (p *Pod) GetUid() string

func (*Pod) GetVersion added in v0.0.11

func (p *Pod) GetVersion() string

func (*Pod) String

func (p *Pod) String() string

func (*Pod) UnmarshalJSON

func (p *Pod) UnmarshalJSON(data []byte) error

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 (p *PodInfo) GetExtraProperties() map[string]interface{}

func (*PodInfo) GetName added in v0.0.11

func (p *PodInfo) GetName() string

func (*PodInfo) GetUid added in v0.0.11

func (p *PodInfo) GetUid() string

func (*PodInfo) String added in v0.0.9

func (p *PodInfo) String() string

func (*PodInfo) UnmarshalJSON added in v0.0.9

func (p *PodInfo) UnmarshalJSON(data []byte) error

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) GetAuthType added in v0.0.11

func (p *PodReport) GetAuthType() AuthTypes

func (*PodReport) GetClusterUrl added in v0.0.11

func (p *PodReport) GetClusterUrl() *string

func (*PodReport) GetErrors added in v0.0.11

func (p *PodReport) GetErrors() []string

func (*PodReport) GetExtraProperties

func (p *PodReport) GetExtraProperties() map[string]interface{}

func (*PodReport) GetPods added in v0.0.11

func (p *PodReport) GetPods() []*Pod

func (*PodReport) String

func (p *PodReport) String() string

func (*PodReport) UnmarshalJSON

func (p *PodReport) UnmarshalJSON(data []byte) error

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) GetBase added in v0.0.11

func (r *RouteInfo) GetBase() string

func (*RouteInfo) GetExtraProperties added in v0.0.9

func (r *RouteInfo) GetExtraProperties() map[string]interface{}

func (*RouteInfo) GetPath added in v0.0.11

func (r *RouteInfo) GetPath() string

func (*RouteInfo) GetPort added in v0.0.11

func (r *RouteInfo) GetPort() *string

func (*RouteInfo) GetService added in v0.0.11

func (r *RouteInfo) GetService() *ServiceInfo

func (*RouteInfo) String added in v0.0.9

func (r *RouteInfo) String() string

func (*RouteInfo) UnmarshalJSON added in v0.0.9

func (r *RouteInfo) UnmarshalJSON(data []byte) error

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) GetAllowPrivilegeEscalation added in v0.0.11

func (s *SecurityContextInfo) GetAllowPrivilegeEscalation() *bool

func (*SecurityContextInfo) GetExtraProperties added in v0.0.9

func (s *SecurityContextInfo) GetExtraProperties() map[string]interface{}

func (*SecurityContextInfo) GetReadOnlyRootFilesystem added in v0.0.11

func (s *SecurityContextInfo) GetReadOnlyRootFilesystem() *bool

func (*SecurityContextInfo) GetRunAsRoot added in v0.0.11

func (s *SecurityContextInfo) GetRunAsRoot() *bool

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) GetAnnotations added in v0.0.11

func (s *Service) GetAnnotations() map[string]string

func (*Service) GetExtraProperties

func (s *Service) GetExtraProperties() map[string]interface{}

func (*Service) GetLabels added in v0.0.11

func (s *Service) GetLabels() map[string]string

func (*Service) GetName added in v0.0.11

func (s *Service) GetName() string

func (*Service) GetNamespace added in v0.0.11

func (s *Service) GetNamespace() *NamespaceInfo

func (*Service) GetPods added in v0.0.11

func (s *Service) GetPods() []*PodInfo

func (*Service) GetSelectors added in v0.0.11

func (s *Service) GetSelectors() map[string]string

func (*Service) GetType added in v0.0.11

func (s *Service) GetType() string

func (*Service) GetUid added in v0.0.11

func (s *Service) GetUid() string

func (*Service) String

func (s *Service) String() string

func (*Service) UnmarshalJSON

func (s *Service) UnmarshalJSON(data []byte) error

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) GetName added in v0.0.11

func (s *ServiceInfo) GetName() string

func (*ServiceInfo) GetNamespace added in v0.0.11

func (s *ServiceInfo) GetNamespace() *NamespaceInfo

func (*ServiceInfo) GetUid added in v0.0.11

func (s *ServiceInfo) GetUid() string

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) GetAuthType added in v0.0.11

func (s *ServiceReport) GetAuthType() AuthTypes

func (*ServiceReport) GetClusterUrl added in v0.0.11

func (s *ServiceReport) GetClusterUrl() *string

func (*ServiceReport) GetErrors added in v0.0.11

func (s *ServiceReport) GetErrors() []string

func (*ServiceReport) GetExtraProperties

func (s *ServiceReport) GetExtraProperties() map[string]interface{}

func (*ServiceReport) GetServices added in v0.0.11

func (s *ServiceReport) GetServices() []*Service

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) GetHostIp added in v0.0.11

func (s *StatusInfo) GetHostIp() *string

func (*StatusInfo) GetPodIp added in v0.0.11

func (s *StatusInfo) GetPodIp() *string

func (*StatusInfo) GetStatus added in v0.0.11

func (s *StatusInfo) GetStatus() StatusTypes

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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