Documentation ¶
Overview ¶
Package services provides implementation of Service resources for Kubernetes
Index ¶
- type Services
- func (obj *Services) Apply(yaml string, namespace string) (k8sTypes.Service, error)
- func (obj *Services) Create(service k8sTypes.Service, namespace string, opts metav1.CreateOptions) (k8sTypes.Service, error)
- func (obj *Services) Delete(name, namespace string, opts metav1.DeleteOptions) error
- func (obj *Services) Get(name, namespace string, opts metav1.GetOptions) (k8sTypes.Service, error)
- func (obj *Services) Kill(name, namespace string, opts metav1.DeleteOptions) error
- func (obj *Services) List(namespace string) ([]k8sTypes.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
Services provides API for manipulating Service resources within a Kubernetes cluster
func New ¶
func New(ctx context.Context, client kubernetes.Interface, metaOptions metav1.ListOptions) *Services
New creates a new instance backed by the provided client
func (*Services) Apply ¶
Apply creates the Kubernetes resource given the supplied YAML configuration
func (*Services) Create ¶
func (obj *Services) Create( service k8sTypes.Service, namespace string, opts metav1.CreateOptions, ) (k8sTypes.Service, error)
Create creates the Kubernetes resource given the supplied object
func (*Services) Delete ¶
func (obj *Services) Delete(name, namespace string, opts metav1.DeleteOptions) error
Delete removes the named Service from the namespace
Click to show internal directories.
Click to hide internal directories.