k8sservice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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