Versions in this module Expand all Collapse all v1 v1.18.1 Apr 6, 2022 Changes in this version + var DefaultImage = "micro/go-micro" + var ErrReadNamespace = errors.New("Could not read namespace from service account secret") + func CertPoolFromFile(filename string) (*x509.CertPool, error) + func CertsFromPEM(pemCerts []byte) ([]*x509.Certificate, error) + func Format(v string) string + func NewClientInCluster() *client + type Container struct + Command []string + Env []EnvVar + Image string + Name string + Ports []ContainerPort + type ContainerPort struct + ContainerPort int + HostPort int + Name string + Protocol string + type Deployment struct + Metadata *Metadata + Spec *DeploymentSpec + Status *DeploymentStatus + func NewDeployment(name, version, typ string) *Deployment + type DeploymentCondition struct + Message string + Reason string + Type string + type DeploymentList struct + Items []Deployment + type DeploymentSpec struct + Replicas int + Selector *LabelSelector + Template *Template + type DeploymentStatus struct + AvailableReplicas int + Conditions []DeploymentCondition + ReadyReplicas int + Replicas int + UnavailableReplicas int + UpdatedReplicas int + type EnvVar struct + Name string + Value string + type Kubernetes interface + Create func(*Resource) error + Delete func(*Resource) error + Get func(*Resource, map[string]string) error + List func(*Resource) error + Update func(*Resource) error + type LabelSelector struct + MatchLabels map[string]string + type LoadBalancerIngress struct + Hostname string + IP string + type LoadBalancerStatus struct + Ingress []LoadBalancerIngress + type Metadata struct + Annotations map[string]string + Labels map[string]string + Name string + Namespace string + Version string + type PodSpec struct + Containers []Container + type Resource struct + Kind string + Name string + Value interface{} + type Service struct + Metadata *Metadata + Spec *ServiceSpec + Status *ServiceStatus + func NewService(name, version, typ string) *Service + type ServiceList struct + Items []Service + type ServicePort struct + Name string + Port int + Protocol string + type ServiceSpec struct + Ports []ServicePort + Selector map[string]string + Type string + type ServiceStatus struct + LoadBalancer LoadBalancerStatus + type Template struct + Metadata *Metadata + PodSpec *PodSpec