Documentation ¶
Index ¶
- type ServiceMapping
- type ServiceMappingsImpl
- func (s *ServiceMappingsImpl) Create(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)
- func (s *ServiceMappingsImpl) CreateInCluster() (bool, error)
- func (s *ServiceMappingsImpl) Get(name string) (*v1alpha.Mapping, error)
- func (s *ServiceMappingsImpl) GetDefinition(name string) (*apiextensionv1.CustomResourceDefinition, error)
- func (s *ServiceMappingsImpl) List() (*v1alpha.MappingList, error)
- func (s *ServiceMappingsImpl) Parse(services []v1alpha.Service, name, ns string) (*v1alpha.Mapping, error)
- func (s *ServiceMappingsImpl) Update(mapping *v1alpha.Mapping) (*v1alpha.Mapping, error)
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 ¶
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 (s *ServiceMappingsImpl) GetDefinition(name string) (*apiextensionv1.CustomResourceDefinition, error)
func (*ServiceMappingsImpl) List ¶
func (s *ServiceMappingsImpl) List() (*v1alpha.MappingList, error)
Click to show internal directories.
Click to hide internal directories.