k8sservice

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package k8sservice manipulates the k8s api of service object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option configures a Service

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the object to manipulate k8s api of service

func New

func New(options ...Option) *Service

New news a Service

func (*Service) Create

func (s *Service) Create(service *apiv1.Service) error

Create creates a k8s service

func (*Service) Delete

func (s *Service) Delete(namespace, name string) error

Delete deletes a k8s service

func (*Service) Get

func (s *Service) Get(namespace, name string) (*apiv1.Service, error)

Get gets a k8s service

func (*Service) List

func (s *Service) List(namespace string, labelSelector map[string]string) (apiv1.ServiceList, error)

func (*Service) Put

func (s *Service) Put(service *apiv1.Service) error

Put updates a k8s service

Jump to

Keyboard shortcuts

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