Documentation ¶
Index ¶
- func CreateClusterIP(c *client.Client, s *Instance) error
- func CreateExternalName(c *client.Client, s *Instance) error
- func CreateLoadBalancer(c *client.Client, s *Instance) error
- func CreateNodePort(c *client.Client, s *Instance) error
- func Delete(c *client.Client, service string, namespace string) error
- func Exists(c *client.Client, service string, namespace string) (string, error)
- func GetIP(c *client.Client, svcName string, nameSpace string) (string, error)
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterIP ¶
CreateClusterIP creates a service using the values from the Service struct via the Client.Clientset
Args:
Service - Service struct Client - Client struct Returns: error or nil
func CreateExternalName ¶
CreateExternalName creates a service using the values from the Service struct via the Client.Clientset
Args:
Service - Service struct Client - Client struct Returns: error or nil
func CreateLoadBalancer ¶
CreateLoadBalancer creates a service using the values from the Service struct via the Client.Clientset
Args:
Service - Service struct Client - Client struct Returns: error or nil
func CreateNodePort ¶
CreateNodePort creates a service using the values from the Service struct via the Client.Clientset
Args:
Service - Service struct Client - Client struct Returns: error or nil
func Delete ¶
Delete deletes a service
Args:
Client - client struct from the client module service - Service Name namespace - Namespace Returns: error or nil
Types ¶
type Instance ¶
type Instance struct { Name string Namespace string LabelKey string LabelValue string Port int32 PortName string PortProtocol string SelectorKey string SelectorValue string DualStackEnabled bool TargetPort int NodePort int32 LoadBalancerIP string ExternalName string ClusterIP string }
Instance type refers to the Service object
Click to show internal directories.
Click to hide internal directories.