Documentation
¶
Index ¶
- Variables
- type Client
- type ConfigMap
- type ConfigMapsClient
- type ConfigMapsReader
- type Container
- type Endpoints
- type EndpointsClient
- type EndpointsReader
- type EndpointsReference
- type Namespace
- type NamespacesClient
- type NamespacesReader
- type Node
- type NodesClient
- type NodesReader
- type PersistentVolume
- type PersistentVolumeClaim
- type PersistentVolumeClaimsClient
- type PersistentVolumeClaimsReader
- type PersistentVolumesClient
- type PersistentVolumesReader
- type Pod
- type PodTemplate
- type PodTemplatesClient
- type PodTemplatesReader
- type PodsClient
- type PodsReader
- type PodsReference
- type Secret
- type SecretsClient
- type SecretsReader
- type Service
- type ServicePort
- type ServicesClient
- type ServicesReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigMapKind = resource.Kind{ Group: "", Version: "v1", Kind: "ConfigMap", Scoped: true, }
View Source
var ConfigMapResource = resource.Type{ Kind: ConfigMapKind, Name: "configmaps", }
View Source
var EndpointsKind = resource.Kind{ Group: "", Version: "v1", Kind: "Endpoints", Scoped: true, }
View Source
var EndpointsResource = resource.Type{ Kind: EndpointsKind, Name: "endpoints", }
View Source
var NamespaceKind = resource.Kind{ Group: "", Version: "v1", Kind: "Namespace", Scoped: false, }
View Source
var NamespaceResource = resource.Type{ Kind: NamespaceKind, Name: "namespaces", }
View Source
var NodeKind = resource.Kind{ Group: "", Version: "v1", Kind: "Node", Scoped: false, }
View Source
var NodeResource = resource.Type{ Kind: NodeKind, Name: "nodes", }
View Source
var PersistentVolumeClaimKind = resource.Kind{ Group: "", Version: "v1", Kind: "PersistentVolumeClaim", Scoped: true, }
View Source
var PersistentVolumeClaimResource = resource.Type{ Kind: PersistentVolumeClaimKind, Name: "persistentvolumeclaims", }
View Source
var PersistentVolumeKind = resource.Kind{ Group: "", Version: "v1", Kind: "PersistentVolume", Scoped: true, }
View Source
var PersistentVolumeResource = resource.Type{ Kind: PersistentVolumeKind, Name: "persistentvolumes", }
View Source
var PodKind = resource.Kind{ Group: "", Version: "v1", Kind: "Pod", Scoped: true, }
View Source
var PodResource = resource.Type{ Kind: PodKind, Name: "pods", }
View Source
var PodTemplateKind = resource.Kind{ Group: "", Version: "v1", Kind: "PodTemplate", Scoped: true, }
View Source
var PodTemplateResource = resource.Type{ Kind: PodTemplateKind, Name: "podtemplates", }
View Source
var SecretKind = resource.Kind{ Group: "", Version: "v1", Kind: "Secret", Scoped: true, }
View Source
var SecretResource = resource.Type{ Kind: SecretKind, Name: "secrets", }
View Source
var ServiceKind = resource.Kind{ Group: "", Version: "v1", Kind: "Service", Scoped: true, }
View Source
var ServiceResource = resource.Type{ Kind: ServiceKind, Name: "services", }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type ConfigMap ¶
func NewConfigMap ¶
type ConfigMapsClient ¶
type ConfigMapsClient interface {
ConfigMaps() ConfigMapsReader
}
func NewConfigMapsClient ¶
func NewConfigMapsClient(resources resource.Client, filter resource.Filter) ConfigMapsClient
type ConfigMapsReader ¶
type ConfigMapsReader interface { Get(ctx context.Context, name string) (*ConfigMap, error) List(ctx context.Context) ([]*ConfigMap, error) }
func NewConfigMapsReader ¶
func NewConfigMapsReader(client resource.Client, filter resource.Filter) ConfigMapsReader
type Container ¶
type Container struct { resource.Client corev1.Container // contains filtered or unexported fields }
Container is a Kubernetes container
type Endpoints ¶
func NewEndpoints ¶
type EndpointsClient ¶
type EndpointsClient interface {
Endpoints() EndpointsReader
}
func NewEndpointsClient ¶
func NewEndpointsClient(resources resource.Client, filter resource.Filter) EndpointsClient
type EndpointsReader ¶
type EndpointsReader interface { Get(ctx context.Context, name string) (*Endpoints, error) List(ctx context.Context) ([]*Endpoints, error) }
func NewEndpointsReader ¶
func NewEndpointsReader(client resource.Client, filter resource.Filter) EndpointsReader
type EndpointsReference ¶
type EndpointsReference interface {
Endpoints() EndpointsReader
}
func NewEndpointsReference ¶
func NewEndpointsReference(resources resource.Client, filter resource.Filter) EndpointsReference
type Namespace ¶ added in v0.6.0
func NewNamespace ¶ added in v0.6.0
type NamespacesClient ¶ added in v0.6.0
type NamespacesClient interface {
Namespaces() NamespacesReader
}
func NewNamespacesClient ¶ added in v0.6.0
func NewNamespacesClient(resources resource.Client, filter resource.Filter) NamespacesClient
type NamespacesReader ¶ added in v0.6.0
type NamespacesReader interface { Get(ctx context.Context, name string) (*Namespace, error) List(ctx context.Context) ([]*Namespace, error) }
func NewNamespacesReader ¶ added in v0.6.0
func NewNamespacesReader(client resource.Client, filter resource.Filter) NamespacesReader
type NodesClient ¶
type NodesClient interface {
Nodes() NodesReader
}
func NewNodesClient ¶
func NewNodesClient(resources resource.Client, filter resource.Filter) NodesClient
type NodesReader ¶
type NodesReader interface { Get(ctx context.Context, name string) (*Node, error) List(ctx context.Context) ([]*Node, error) }
func NewNodesReader ¶
func NewNodesReader(client resource.Client, filter resource.Filter) NodesReader
type PersistentVolume ¶ added in v0.6.0
type PersistentVolume struct { *resource.Resource Object *corev1.PersistentVolume }
func NewPersistentVolume ¶ added in v0.6.0
func NewPersistentVolume(persistentVolume *corev1.PersistentVolume, client resource.Client) *PersistentVolume
type PersistentVolumeClaim ¶ added in v0.6.0
type PersistentVolumeClaim struct { *resource.Resource Object *corev1.PersistentVolumeClaim }
func NewPersistentVolumeClaim ¶ added in v0.6.0
func NewPersistentVolumeClaim(persistentVolumeClaim *corev1.PersistentVolumeClaim, client resource.Client) *PersistentVolumeClaim
type PersistentVolumeClaimsClient ¶ added in v0.6.0
type PersistentVolumeClaimsClient interface {
PersistentVolumeClaims() PersistentVolumeClaimsReader
}
func NewPersistentVolumeClaimsClient ¶ added in v0.6.0
func NewPersistentVolumeClaimsClient(resources resource.Client, filter resource.Filter) PersistentVolumeClaimsClient
type PersistentVolumeClaimsReader ¶ added in v0.6.0
type PersistentVolumeClaimsReader interface { Get(ctx context.Context, name string) (*PersistentVolumeClaim, error) List(ctx context.Context) ([]*PersistentVolumeClaim, error) }
func NewPersistentVolumeClaimsReader ¶ added in v0.6.0
func NewPersistentVolumeClaimsReader(client resource.Client, filter resource.Filter) PersistentVolumeClaimsReader
type PersistentVolumesClient ¶ added in v0.6.0
type PersistentVolumesClient interface {
PersistentVolumes() PersistentVolumesReader
}
func NewPersistentVolumesClient ¶ added in v0.6.0
func NewPersistentVolumesClient(resources resource.Client, filter resource.Filter) PersistentVolumesClient
type PersistentVolumesReader ¶ added in v0.6.0
type PersistentVolumesReader interface { Get(ctx context.Context, name string) (*PersistentVolume, error) List(ctx context.Context) ([]*PersistentVolume, error) }
func NewPersistentVolumesReader ¶ added in v0.6.0
func NewPersistentVolumesReader(client resource.Client, filter resource.Filter) PersistentVolumesReader
type Pod ¶
func (*Pod) Containers ¶
Containers returns a list of containers in the pod
type PodTemplate ¶ added in v0.6.0
type PodTemplate struct { *resource.Resource Object *corev1.PodTemplate }
func NewPodTemplate ¶ added in v0.6.0
func NewPodTemplate(podTemplate *corev1.PodTemplate, client resource.Client) *PodTemplate
type PodTemplatesClient ¶ added in v0.6.0
type PodTemplatesClient interface {
PodTemplates() PodTemplatesReader
}
func NewPodTemplatesClient ¶ added in v0.6.0
func NewPodTemplatesClient(resources resource.Client, filter resource.Filter) PodTemplatesClient
type PodTemplatesReader ¶ added in v0.6.0
type PodTemplatesReader interface { Get(ctx context.Context, name string) (*PodTemplate, error) List(ctx context.Context) ([]*PodTemplate, error) }
func NewPodTemplatesReader ¶ added in v0.6.0
func NewPodTemplatesReader(client resource.Client, filter resource.Filter) PodTemplatesReader
type PodsClient ¶
type PodsClient interface {
Pods() PodsReader
}
func NewPodsClient ¶
func NewPodsClient(resources resource.Client, filter resource.Filter) PodsClient
type PodsReader ¶
type PodsReader interface { Get(ctx context.Context, name string) (*Pod, error) List(ctx context.Context) ([]*Pod, error) }
func NewPodsReader ¶
func NewPodsReader(client resource.Client, filter resource.Filter) PodsReader
type PodsReference ¶
type PodsReference interface {
Pods() PodsReader
}
func NewPodsReference ¶
func NewPodsReference(resources resource.Client, filter resource.Filter) PodsReference
type SecretsClient ¶
type SecretsClient interface {
Secrets() SecretsReader
}
func NewSecretsClient ¶
func NewSecretsClient(resources resource.Client, filter resource.Filter) SecretsClient
type SecretsReader ¶
type SecretsReader interface { Get(ctx context.Context, name string) (*Secret, error) List(ctx context.Context) ([]*Secret, error) }
func NewSecretsReader ¶
func NewSecretsReader(client resource.Client, filter resource.Filter) SecretsReader
type Service ¶
type Service struct { *resource.Resource Object *corev1.Service EndpointsReference }
func (*Service) Port ¶
func (s *Service) Port(name string) *ServicePort
Port returns a service port by name
func (*Service) Ports ¶
func (s *Service) Ports() []*ServicePort
Ports returns a list of service ports
type ServicePort ¶
type ServicePort struct { resource.Client corev1.ServicePort // contains filtered or unexported fields }
ServicePort is a service port
func (*ServicePort) Address ¶
func (p *ServicePort) Address(qualified bool) string
Address returns the address of the port
type ServicesClient ¶
type ServicesClient interface {
Services() ServicesReader
}
func NewServicesClient ¶
func NewServicesClient(resources resource.Client, filter resource.Filter) ServicesClient
Source Files
¶
- client.go
- configmap.go
- configmapsclient.go
- configmapsreader.go
- container.go
- endpoints.go
- endpointsclient.go
- endpointsreader.go
- endpointsreference.go
- hostname.go
- namespace.go
- namespacesclient.go
- namespacesreader.go
- node.go
- nodesclient.go
- nodesreader.go
- persistentvolume.go
- persistentvolumeclaim.go
- persistentvolumeclaimsclient.go
- persistentvolumeclaimsreader.go
- persistentvolumesclient.go
- persistentvolumesreader.go
- pod.go
- podsclient.go
- podsreader.go
- podsreference.go
- podtemplate.go
- podtemplatesclient.go
- podtemplatesreader.go
- port.go
- secret.go
- secretsclient.go
- secretsreader.go
- service.go
- servicesclient.go
- servicesreader.go
- wait.go
Click to show internal directories.
Click to hide internal directories.