Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the strategies used to access a Kubernetes API server. TODO: also allow cert based and bearer token auth
func NewClient ¶
NewClient returns a new simple client to a Kubernetes API server using only its base URL. It should be enough to access an API endpoint via a proxy which takes care of all the authentication details, like `kubectl proxy`.
type Ingress ¶
type Ingress struct { Metadata listMeta `json:"metadata"` Spec ingressSpec `json:"spec"` Status ingressStatus `json:"status"` }
Ingress is used to deserialize Kubernete's API resources with the same name.
func (*Ingress) CertificateARN ¶
CertificateARN returns the AWS certificate (IAM or ACM) ARN found in the ingress resource metadata. It returns an empty string if the annotation is missing.
type IngressList ¶
type IngressList struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata ingressListMetadata `json:"metadata"` Items []Ingress `json:"items"` }
IngressList is used to deserialize Kubernete's API resources with the same name.
func ListIngress ¶
func ListIngress(client *Client) (*IngressList, error)
ListIngress can be used to obtain the list of ingress resources for all namespaces.