helpers

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 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)

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