helpers

package
v0.0.17-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendWithEscape

func AppendWithEscape(buf []byte, s string) []byte

func ParseYDBDatabaseEndpoint

func ParseYDBDatabaseEndpoint(endpoint string) (baseEP, databasePath string, useTLS bool, err error)

func TrimPath added in v0.0.14

func TrimPath(path string) string

func YDBUnitToUnit added in v0.0.12

func YDBUnitToUnit(unit string) string

func YdbTTLUnitCheck added in v0.0.12

func YdbTTLUnitCheck(i interface{}, k string) (warnings []string, errors []error)

func YdbTablePathCheck added in v0.0.15

func YdbTablePathCheck(i interface{}, k string) (warnings []string, errors []error)

Types

type ResourceDataProxy

type ResourceDataProxy interface {
	Get(key string) interface{}
	GetOk(key string) (interface{}, bool)

	// GetOkExists and methods below are bypassed (i.e. call schema.ResourceData directly)
	// Deprecated: calls a deprecated method
	GetOkExists(key string) (interface{}, bool)

	Id() string
	SetId(id string)
	Set(key string, value interface{}) error
	HasChange(key string) bool
	GetChange(key string) (interface{}, interface{})
	Partial(on bool)
	Timeout(s string) time.Duration
}

type TerraformCRUD

type TerraformCRUD func(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

type YDBEntity

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

func ParseYDBEntityID

func ParseYDBEntityID(id string) (*YDBEntity, error)

func (*YDBEntity) GetEntityPath

func (y *YDBEntity) GetEntityPath() string

func (*YDBEntity) GetFullEntityPath

func (y *YDBEntity) GetFullEntityPath() string

func (*YDBEntity) ID added in v0.0.3

func (y *YDBEntity) ID() string

func (*YDBEntity) PrepareFullYDBEndpoint

func (y *YDBEntity) PrepareFullYDBEndpoint() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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