extension

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package extension is used to interpret the dcl extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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