services

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package services provides implementation of Service resources for Kubernetes

Index

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

func (obj *Services) Apply(yaml string, namespace string) (k8sTypes.Service, error)

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

func (*Services) Get

func (obj *Services) Get(name, namespace string, opts metav1.GetOptions) (k8sTypes.Service, error)

Get returns the named Services instance within the namespace if available

func (*Services) Kill

func (obj *Services) Kill(name, namespace string, opts metav1.DeleteOptions) error

Kill removes the named Service from the namespace Deprecated: Use Delete instead.

func (*Services) List

func (obj *Services) List(namespace string) ([]k8sTypes.Service, error)

List returns a collection of Services available within the namespace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL