servicemappingloader

package
v1.104.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 9 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 GetResourceConfigsForTFType added in v1.101.0

func GetResourceConfigsForTFType(sm *v1alpha1.ServiceMapping, tfType string) (*v1alpha1.ResourceConfig, error)

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) GetAutoGenOnlyGroups added in v1.98.0

func (s *ServiceMappingLoader) GetAutoGenOnlyGroups() map[string]bool

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