...

Package extension

import "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/dcl/extension"
Overview
Index
Subdirectories

Overview ▾

Package extension is used to interpret the dcl extensions.

func GetLabelsFieldSchema

func GetLabelsFieldSchema(schema *openapi.Schema) (labelsField string, fieldSchema *openapi.Schema, found bool, err error)

func GetNameFieldSchema

func GetNameFieldSchema(schema *openapi.Schema) (*openapi.Schema, bool)

func GetNameValueTemplate

func GetNameValueTemplate(schema *openapi.Schema) (string, error)

func GetReferenceFieldName

func GetReferenceFieldName(path []string, schema *openapi.Schema) (string, error)

GetReferenceFieldName returns the converted field name given the original reference field name.

func HasIam

func HasIam(schema *openapi.Schema) (bool, error)

func HasSensitiveFields

func HasSensitiveFields(schema *openapi.Schema) (bool, error)

func HasStateHint

func HasStateHint(schema *openapi.Schema) (bool, error)

func IsImmutableField

func IsImmutableField(schema *openapi.Schema) (bool, error)

func IsMutableButUnreadableField

func IsMutableButUnreadableField(schema *openapi.Schema) (bool, error)

func IsReferenceField

func IsReferenceField(schema *openapi.Schema) bool

IsReferenceField takes the field schema and determines if the field is for resource reference.

func IsResourceIDFieldServerGenerated

func IsResourceIDFieldServerGenerated(nameFieldSchema *openapi.Schema) (bool, error)

func IsSensitiveField

func IsSensitiveField(schema *openapi.Schema) (bool, error)

IsSensitiveField takes the field schema and determines if the field is sensitive.

Subdirectories

Name Synopsis
..
container