v1

package
v1.7.12 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (C) 2019-2024 vdaas.org vald team <vald@vdaas.org>

Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// MirrorTargetConnected means that the ValdMirrorTarget has been accepted by the system.
	MirrorTargetPending = MirrorTargetPhase("Pending")

	// MirrorTargetConnected means that the target was connected.
	MirrorTargetConnected = MirrorTargetPhase("Connected")

	// MirrorTargetDisconnected means that the target was disconnected.
	MirrorTargetDisconnected = MirrorTargetPhase("Disconnected")

	// MirrorTargetUnknown means that for some reason the state of the ValdMirrorTarget could not be obtained.
	MirrorTargetUnknown = MirrorTargetPhase("Unknown")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "vald.vdaas.org", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type MirrorTarget

type MirrorTarget struct {
	Host string `json:"host,omitempty"`
	Port int    `json:"port,omitempty"`
}

MirrorTarget is a target information.

func (*MirrorTarget) DeepCopy

func (in *MirrorTarget) DeepCopy() *MirrorTarget

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

func (*MirrorTarget) DeepCopyInto

func (in *MirrorTarget) DeepCopyInto(out *MirrorTarget)

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

type MirrorTargetPhase

type MirrorTargetPhase string

MirrorTargetPhase is a label for the condition of a ValdMirrorTarget at the current time.

type MirrorTargetSpec

type MirrorTargetSpec struct {
	Colocation string       `json:"colocation,omitempty"`
	Target     MirrorTarget `json:"target,omitempty"`
}

MirrorTargetSpec is a description of a ValdMirrorTarget.

func (*MirrorTargetSpec) DeepCopy

func (in *MirrorTargetSpec) DeepCopy() *MirrorTargetSpec

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

func (*MirrorTargetSpec) DeepCopyInto

func (in *MirrorTargetSpec) DeepCopyInto(out *MirrorTargetSpec)

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

type MirrorTargetStatus

type MirrorTargetStatus struct {
	Phase              MirrorTargetPhase `json:"phase,omitempty"`
	LastTransitionTime metav1.Time       `json:"lastTransitionTime,omitempty"`
}

MirrorTargetStatus is a status of ValdMirrorTarget.

type ValdMirrorTarget

type ValdMirrorTarget struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   MirrorTargetSpec   `json:"spec,omitempty"`
	Status MirrorTargetStatus `json:"status,omitempty"`
}

ValdMirrorTarget is a mirror information.

func (*ValdMirrorTarget) DeepCopy

func (in *ValdMirrorTarget) DeepCopy() *ValdMirrorTarget

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

func (*ValdMirrorTarget) DeepCopyInto

func (in *ValdMirrorTarget) DeepCopyInto(out *ValdMirrorTarget)

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

func (*ValdMirrorTarget) DeepCopyObject

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

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

type ValdMirrorTargetList

type ValdMirrorTargetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []ValdMirrorTarget `json:"items,omitempty"`
}

ValdMirrorTargetList is the whole list of all ValdMirror which have been registered with master.

func (*ValdMirrorTargetList) DeepCopy

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

func (*ValdMirrorTargetList) DeepCopyInto

func (in *ValdMirrorTargetList) DeepCopyInto(out *ValdMirrorTargetList)

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

func (*ValdMirrorTargetList) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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