...

Package allowlist

import "github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/allowlist"
Overview
Index

Overview ▾

type AutoGenAllowlist

type AutoGenAllowlist struct {
    ServiceAndTFTypes  map[string]map[string]*AutoGenType
    ServiceAndKRMKinds map[string]map[string]*AutoGenType
    KRMKinds           map[string]*AutoGenType
}

func LoadAutoGenAllowList

func LoadAutoGenAllowList(generatedSMMap map[string]v1alpha1.ServiceMapping) (*AutoGenAllowlist, error)

func NewAutoGenAllowlist

func NewAutoGenAllowlist() *AutoGenAllowlist

func (*AutoGenAllowlist) GetKRMKind

func (l *AutoGenAllowlist) GetKRMKind(krmKind string) (*AutoGenType, bool)

func (*AutoGenAllowlist) GetTFTypeInService

func (l *AutoGenAllowlist) GetTFTypeInService(serviceNameInLC, tfType string) (*AutoGenType, bool)

func (*AutoGenAllowlist) HasKRMKindInService

func (l *AutoGenAllowlist) HasKRMKindInService(serviceNameInLC, krmKind string) bool

func (*AutoGenAllowlist) HasService

func (l *AutoGenAllowlist) HasService(serviceNameInLC string) bool

type AutoGenType

type AutoGenType struct {
    ServiceNameInLC string
    KRMKindName     string
    TFTypeName      string
    Version         string
}