Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages communication with the Kubernetes Service.
func NewClient ¶
func NewClient(clientset *kubernetes.Clientset) *Client
NewClient constructs a new Client.
type Port ¶
type Port struct { Name string AppProtocol string Nodeport int32 Port int32 Protocol string TargetPort string }
Port represents service's port
type Spec ¶
type Spec struct { ClusterIP string ExternalIPs []string ExternalName string ExternalTrafficPolicy string LoadBalancerIP string LoadBalancerSourceRanges []string Ports Ports PublishNotReadyAddresses bool Selector map[string]string SessionAffinity string SessionAffinityTimeoutSeconds int32 TopologyKeys []string Type string }
Spec represents Kubernetes ServiceSpec
func (*Spec) ToK8S ¶
func (s *Spec) ToK8S() v1.ServiceSpec
ToK8S converts ServiceSpec to Kuberntes client object
Click to show internal directories.
Click to hide internal directories.