fake

package
v0.0.0-...-a438c6f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMap

func NewMap(keyValue ...string) map[string]any

NewMap prepares a map from the supplied key value parameters. The parameters slice must be a sequence of key, value pairs and must have an even length. The function will panic otherwise.

Types

type LateInitializer

type LateInitializer struct {
	Result bool
	Err    error
}

LateInitializer is mock LateInitializer.

func (*LateInitializer) LateInitialize

func (li *LateInitializer) LateInitialize(_ []byte) (bool, error)

LateInitialize is a mock.

type MetadataProvider

type MetadataProvider struct {
	Type                     string
	SchemaVersion            int
	ConnectionDetailsMapping map[string]string
}

MetadataProvider is mock MetadataProvider.

func (*MetadataProvider) GetConnectionDetailsMapping

func (mp *MetadataProvider) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping is a mock.

func (*MetadataProvider) GetTerraformResourceType

func (mp *MetadataProvider) GetTerraformResourceType() string

GetTerraformResourceType is a mock.

func (*MetadataProvider) GetTerraformSchemaVersion

func (mp *MetadataProvider) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion is a mock.

type Observable

type Observable struct {
	Observation                 map[string]any
	AdditionalConnectionDetails map[string][]byte
	ID                          string
}

Observable is mock Observable.

func (*Observable) GetAdditionalConnectionDetails

func (o *Observable) GetAdditionalConnectionDetails(_ map[string]any) (map[string][]byte, error)

GetAdditionalConnectionDetails is a mock

func (*Observable) GetID

func (o *Observable) GetID() string

GetID is a mock.

func (*Observable) GetObservation

func (o *Observable) GetObservation() (map[string]any, error)

GetObservation is a mock.

func (*Observable) SetObservation

func (o *Observable) SetObservation(data map[string]any) error

SetObservation is a mock.

type Option

type Option func(terraformed *Terraformed)

Option is an option to modify the properties of a Terraformed object.

func WithParameters

func WithParameters(params map[string]any) Option

WithParameters sets the parameters of a Terraformed.

type Parameterizable

type Parameterizable struct {
	Parameters     map[string]any
	InitParameters map[string]any
}

Parameterizable is mock Parameterizable.

func (*Parameterizable) GetInitParameters

func (p *Parameterizable) GetInitParameters() (map[string]any, error)

GetInitParameters is a mock.

func (*Parameterizable) GetParameters

func (p *Parameterizable) GetParameters() (map[string]any, error)

GetParameters is a mock.

func (*Parameterizable) SetParameters

func (p *Parameterizable) SetParameters(data map[string]any) error

SetParameters is a mock.

type Terraformed

Terraformed is a mock that implements Terraformed interface.

func NewTerraformed

func NewTerraformed(opts ...Option) *Terraformed

NewTerraformed initializes a new Terraformed with the given options.

func (*Terraformed) DeepCopyObject

func (t *Terraformed) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*Terraformed) GetMergedParameters

func (t *Terraformed) GetMergedParameters(_ bool) (map[string]any, error)

func (*Terraformed) GetObjectKind

func (t *Terraformed) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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