v1alpha1

package
v0.0.0-...-9f2d684 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "apirator.io"
	Version   = "v1alpha1"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   GroupName,
	Version: Version,
}

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type APIMock

type APIMock struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   APIMockSpec   `json:"spec,omitempty"`
	Status APIMockStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Foo is a specification for a Foo resource

func (*APIMock) DeepCopy

func (in *APIMock) DeepCopy() *APIMock

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMock.

func (*APIMock) DeepCopyInto

func (in *APIMock) DeepCopyInto(out *APIMock)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIMock) DeepCopyObject

func (in *APIMock) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type APIMockList

type APIMockList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []APIMock `json:"items"`
}

func (*APIMockList) DeepCopy

func (in *APIMockList) DeepCopy() *APIMockList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockList.

func (*APIMockList) DeepCopyInto

func (in *APIMockList) DeepCopyInto(out *APIMockList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIMockList) DeepCopyObject

func (in *APIMockList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type APIMockSpec

type APIMockSpec struct {
	Definition        string            `json:"definition,omitempty"`
	ServiceDefinition ServiceDefinition `json:"serviceDefinition,omitempty"`
	Watch             bool              `json:"watch,omitempty"`
	Selector          map[string]string `json:"selector,omitempty"`
	Host              string            `json:"host,omitempty"`
}

func (*APIMockSpec) DeepCopy

func (in *APIMockSpec) DeepCopy() *APIMockSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockSpec.

func (*APIMockSpec) DeepCopyInto

func (in *APIMockSpec) DeepCopyInto(out *APIMockSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type APIMockStatus

type APIMockStatus struct {
	Phase string `json:"phase,omitempty"`
	Steps []Step `json:"steps"`
}

func (*APIMockStatus) DeepCopy

func (in *APIMockStatus) DeepCopy() *APIMockStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIMockStatus.

func (*APIMockStatus) DeepCopyInto

func (in *APIMockStatus) DeepCopyInto(out *APIMockStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceDefinition

type ServiceDefinition struct {
	Port        int            `json:"port,omitempty"`
	ServiceType v1.ServiceType `json:"serviceType,omitempty"`
}

func (*ServiceDefinition) DeepCopy

func (in *ServiceDefinition) DeepCopy() *ServiceDefinition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDefinition.

func (*ServiceDefinition) DeepCopyInto

func (in *ServiceDefinition) DeepCopyInto(out *ServiceDefinition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Step

type Step struct {
	Action      string      `json:"action,omitempty"`
	LastUpdate  metav1.Time `json:"lastUpdate,omitempty"`
	Description string      `json:"description,omitempty"`
}

func (*Step) DeepCopy

func (in *Step) DeepCopy() *Step

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.

func (*Step) DeepCopyInto

func (in *Step) DeepCopyInto(out *Step)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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