fake

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMap added in v1.1.0

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 added in v1.1.0

type Option func(terraformed *Terraformed)

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

func WithParameters added in v1.1.0

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 added in v1.1.0

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