v1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API.

Package v1 contains API Schema definitions for the AzureResource v1 API group

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{
		Group:   "osm.osm.k8s.io",
		Version: "v1",
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds all Resources to the Scheme
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AzureResource

type AzureResource struct {
	metav1.TypeMeta `json:",inline"`

	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec AzureResourceSpec `json:"spec"`
}

AzureResource is an object describing Azure specific compute, which will be included in the Service Mesh.

func (*AzureResource) DeepCopy

func (in *AzureResource) DeepCopy() *AzureResource

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

func (*AzureResource) DeepCopyInto

func (in *AzureResource) DeepCopyInto(out *AzureResource)

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

func (*AzureResource) DeepCopyObject

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

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

type AzureResourceList

type AzureResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []AzureResource `json:"items"`
}

AzureResourceList is the list of Azure resources.

func (*AzureResourceList) DeepCopy

func (in *AzureResourceList) DeepCopy() *AzureResourceList

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

func (*AzureResourceList) DeepCopyInto

func (in *AzureResourceList) DeepCopyInto(out *AzureResourceList)

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

func (*AzureResourceList) DeepCopyObject

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

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

type AzureResourceSpec

type AzureResourceSpec struct {
	metav1.TypeMeta `json:",inline"`

	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// ResourceID is the URI identifying an unique Azure compute resource.
	// example: /resource/subscriptions/e3f0/resourceGroups/mesh-rg/providers/Microsoft.Compute/virtualMachineScaleSets/baz
	ResourceID string `json:"resourceid"`
}

AzureResourceSpec defines the properties that uniquely identify an Azure compute resource.

func (*AzureResourceSpec) DeepCopy

func (in *AzureResourceSpec) DeepCopy() *AzureResourceSpec

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

func (*AzureResourceSpec) DeepCopyInto

func (in *AzureResourceSpec) DeepCopyInto(out *AzureResourceSpec)

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