odysseia

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceMapping

type ServiceMapping interface {
	Parse(services []v1alpha.Service, name, ns string) (*v1alpha.Mapping, error)
	List() (*v1alpha.MappingList, error)
	Get(name string) (*v1alpha.Mapping, error)
	Create(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)
	Update(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)
	CreateInCluster() (bool, error)
	GetDefinition(name string) (*apiextensionv1.CustomResourceDefinition, error)
}

func NewFakeServiceMappingImpl

func NewFakeServiceMappingImpl() (ServiceMapping, error)

func NewServiceMappingImpl

func NewServiceMappingImpl(restConfig *rest.Config) (ServiceMapping, error)

type ServiceMappingsImpl

type ServiceMappingsImpl struct {
	ExtensionClient clientset.Interface
	Client          rest.Interface
}

func (*ServiceMappingsImpl) Create

func (s *ServiceMappingsImpl) Create(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)

func (*ServiceMappingsImpl) CreateInCluster

func (s *ServiceMappingsImpl) CreateInCluster() (bool, error)

CreateInCluster retrieves the CRD and will deploy it to the cluster when it's not installed yet.

func (*ServiceMappingsImpl) Get

func (s *ServiceMappingsImpl) Get(name string) (*v1alpha.Mapping, error)

func (*ServiceMappingsImpl) GetDefinition

func (*ServiceMappingsImpl) List

func (*ServiceMappingsImpl) Parse

func (s *ServiceMappingsImpl) Parse(services []v1alpha.Service, name, ns string) (*v1alpha.Mapping, error)

func (*ServiceMappingsImpl) Update

func (s *ServiceMappingsImpl) Update(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)

Jump to

Keyboard shortcuts

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