fake

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MigrationSourceGroup   = "fakesourceapi"
	MigrationSourceVersion = "v1alpha1"
	MigrationSourceKind    = "VPC"

	MigrationTargetGroup   = "faketargetapi"
	MigrationTargetVersion = "v1alpha1"
	MigrationTargetKind    = "VPC"
)

Variables

View Source
var (
	MigrationSourceGVK = schema.GroupVersionKind{
		Group:   MigrationSourceGroup,
		Version: MigrationSourceVersion,
		Kind:    MigrationSourceKind,
	}

	MigrationTargetGVK = schema.GroupVersionKind{
		Group:   MigrationTargetGroup,
		Version: MigrationTargetVersion,
		Kind:    MigrationTargetKind,
	}
)

Functions

This section is empty.

Types

type EmbeddedParameter

type EmbeddedParameter struct {
	Param *string `json:"param,omitempty"`
}

type MigrationSourceObject

type MigrationSourceObject struct {
	mocks.MockManaged
	// cannot inline v1.TypeMeta here as mocks.MockManaged is also inlined
	APIVersion string `json:"apiVersion,omitempty"`
	Kind       string `json:"kind,omitempty"`
	// cannot inline v1.ObjectMeta here as mocks.MockManaged is also inlined
	ObjectMeta ObjectMeta `json:"metadata,omitempty"`
	Spec       SourceSpec `json:"spec"`
	Status     Status     `json:"status,omitempty"`
}

func (*MigrationSourceObject) GetName

func (m *MigrationSourceObject) GetName() string

type MigrationTargetObject

type MigrationTargetObject struct {
	mocks.MockManaged
	// cannot inline v1.TypeMeta here as mocks.MockManaged is also inlined
	APIVersion string `json:"apiVersion,omitempty"`
	Kind       string `json:"kind,omitempty"`
	// cannot inline v1.ObjectMeta here as mocks.MockManaged is also inlined
	ObjectMeta ObjectMeta `json:"metadata,omitempty"`
	Spec       TargetSpec `json:"spec"`
	Status     Status     `json:"status,omitempty"`
}

func (*MigrationTargetObject) GetGenerateName

func (m *MigrationTargetObject) GetGenerateName() string

func (*MigrationTargetObject) GetName

func (m *MigrationTargetObject) GetName() string

func (*MigrationTargetObject) GetObjectKind

func (m *MigrationTargetObject) GetObjectKind() schema.ObjectKind

type ObjectMeta

type ObjectMeta struct {
	Name         string            `json:"name,omitempty"`
	GenerateName string            `json:"generateName,omitempty"`
	Labels       map[string]string `json:"labels,omitempty"`
}

type Observation

type Observation struct{}

type SourceSpec

type SourceSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       SourceSpecParameters `json:"forProvider"`
}

type SourceSpecParameters

type SourceSpecParameters struct {
	Region    *string            `json:"region,omitempty"`
	CIDRBlock string             `json:"cidrBlock"`
	Tags      []Tag              `json:"tags,omitempty"`
	TestParam *EmbeddedParameter `json:",inline"`
}

type Status

type Status struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          Observation `json:"atProvider,omitempty"`
}

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type TargetSpec

type TargetSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       TargetSpecParameters `json:"forProvider"`
}

type TargetSpecParameters

type TargetSpecParameters struct {
	Region    *string           `json:"region,omitempty"`
	CIDRBlock string            `json:"cidrBlock"`
	Tags      map[string]string `json:"tags,omitempty"`
	TestParam EmbeddedParameter `json:",inline"`
}

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