methodk8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 5 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 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 (a *Address) GetExtraProperties() map[string]interface{}

func (*Address) String

func (a *Address) String() string

func (*Address) UnmarshalJSON

func (a *Address) UnmarshalJSON(data []byte) error

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

func (*Container) String

func (c *Container) String() string

func (*Container) UnmarshalJSON

func (c *Container) UnmarshalJSON(data []byte) error

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"`
	Instance  string      `json:"instance" url:"instance"`
	Listeners []*Listener `json:"listeners,omitempty" url:"listeners,omitempty"`
	// contains filtered or unexported fields
}

func (*Gateway) GetExtraProperties

func (g *Gateway) GetExtraProperties() map[string]interface{}

func (*Gateway) String

func (g *Gateway) String() string

func (*Gateway) UnmarshalJSON

func (g *Gateway) UnmarshalJSON(data []byte) error

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"`
	// contains filtered or unexported fields
}

func (*Ingress) GetExtraProperties

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

func (*Ingress) String

func (i *Ingress) String() string

func (*Ingress) UnmarshalJSON

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

type IngressReport

type IngressReport struct {
	Gateways  []*Gateway `json:"gateways,omitempty" url:"gateways,omitempty"`
	Ingresses []*Ingress `json:"ingresses,omitempty" url:"ingresses,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 Listener

type Listener struct {
	Name     string        `json:"name" url:"name"`
	Port     int           `json:"port" url:"port"`
	Protocol ProtocolTypes `json:"protocol" url:"protocol"`
	// contains filtered or unexported fields
}

func (*Listener) GetExtraProperties

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

func (*Listener) String

func (l *Listener) String() string

func (*Listener) UnmarshalJSON

func (l *Listener) UnmarshalJSON(data []byte) error

type Node

type Node struct {
	Name         string     `json:"name" url:"name"`
	Arch         string     `json:"arch" url:"arch"`
	Os           string     `json:"os" url:"os"`
	Instancetype string     `json:"instancetype" url:"instancetype"`
	Status       bool       `json:"status" url:"status"`
	Addresses    []*Address `json:"addresses,omitempty" url:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) GetExtraProperties

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

func (*Node) String

func (n *Node) String() string

func (*Node) UnmarshalJSON

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

type NodeReport

type NodeReport struct {
	Nodes  []*Node  `json:"nodes,omitempty" url:"nodes,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 {
	Name       string       `json:"name" url:"name"`
	Namespace  string       `json:"namespace" url:"namespace"`
	Version    string       `json:"version" url:"version"`
	Status     *Status      `json:"status,omitempty" url:"status,omitempty"`
	Containers []*Container `json:"containers,omitempty" url:"containers,omitempty"`
	// contains filtered or unexported fields
}

func (*Pod) GetExtraProperties

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

func (*Pod) String

func (p *Pod) String() string

func (*Pod) UnmarshalJSON

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

type PodReport

type PodReport struct {
	Pods   []*Pod   `json:"pods,omitempty" url:"pods,omitempty"`
	Errors []string `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*PodReport) GetExtraProperties

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

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 Rule

type Rule struct {
	Host        string `json:"host" url:"host"`
	Path        string `json:"path" url:"path"`
	ServiceName string `json:"serviceName" url:"serviceName"`
	ServicePort int    `json:"servicePort" url:"servicePort"`
	// contains filtered or unexported fields
}

func (*Rule) GetExtraProperties

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

func (*Rule) String

func (r *Rule) String() string

func (*Rule) UnmarshalJSON

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

type SecurityContext

type SecurityContext struct {
	RunAsRoot                bool `json:"runAsRoot" url:"runAsRoot"`
	AllowPrivilegeEscalation bool `json:"allowPrivilegeEscalation" url:"allowPrivilegeEscalation"`
	ReadOnlyRootFilesystem   bool `json:"readOnlyRootFilesystem" url:"readOnlyRootFilesystem"`
	// 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" url:"managedBy"`
	Ports     []*ServicePort `json:"ports,omitempty" url:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) GetExtraProperties

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

func (*Service) String

func (s *Service) String() string

func (*Service) UnmarshalJSON

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

type ServicePort

type ServicePort struct {
	Name       string        `json:"name" url:"name"`
	Protocol   ProtocolTypes `json:"protocol" url:"protocol"`
	Port       int           `json:"port" url:"port"`
	TargetPort string        `json:"targetPort" url:"targetPort"`
	// contains filtered or unexported fields
}

func (*ServicePort) GetExtraProperties

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

func (*ServicePort) String

func (s *ServicePort) String() string

func (*ServicePort) UnmarshalJSON

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

type ServiceReport

type ServiceReport struct {
	Services []*Service `json:"services,omitempty" url:"services,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 Status

type Status struct {
	Status StatusTypes `json:"status" url:"status"`
	PodIp  string      `json:"podIp" url:"podIp"`
	HostIp string      `json:"hostIp" url:"hostIp"`
	// contains filtered or unexported fields
}

func (*Status) GetExtraProperties

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

func (*Status) String

func (s *Status) String() string

func (*Status) UnmarshalJSON

func (s *Status) 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