servicemappingloader

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceConfigsForKind

func GetResourceConfigsForKind(sm *v1alpha1.ServiceMapping, kind string) []*v1alpha1.ResourceConfig

func GetServiceMappings

func GetServiceMappings() ([]v1alpha1.ServiceMapping, error)

Types

type ServiceMappingLoader

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

func New

func New() (*ServiceMappingLoader, error)

func NewFromServiceMappings

func NewFromServiceMappings(serviceMappings []v1alpha1.ServiceMapping) *ServiceMappingLoader

func (*ServiceMappingLoader) GetResourceConfig

func (*ServiceMappingLoader) GetResourceConfigs

func (s *ServiceMappingLoader) GetResourceConfigs(gvk schema.GroupVersionKind) ([]*v1alpha1.ResourceConfig, error)

a single GVK can be associated with multiple ResourceConfigs because some resources have both Global and Regional ResourceConfigs

func (*ServiceMappingLoader) GetServiceMapping

func (s *ServiceMappingLoader) GetServiceMapping(name string) (*v1alpha1.ServiceMapping, error)

func (*ServiceMappingLoader) GetServiceMappingForServiceHostName

func (s *ServiceMappingLoader) GetServiceMappingForServiceHostName(hostName string) (*v1alpha1.ServiceMapping, error)

func (*ServiceMappingLoader) GetServiceMappings

func (s *ServiceMappingLoader) GetServiceMappings() []v1alpha1.ServiceMapping

Jump to

Keyboard shortcuts

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