ref

package
v0.0.0-...-e73b65a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	// The object ID.
	// vsphere:
	//   The managed object ID.
	ID string `json:"id,omitempty"`
	// An object Name.
	// vsphere:
	//   A qualified name.
	Name string `json:"name,omitempty"`
	// Type used to qualify the name.
	Type string `json:"type,omitempty"`
}

Source reference. Either the ID or Name must be specified.

func (*Ref) DeepCopy

func (in *Ref) DeepCopy() *Ref

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

func (*Ref) DeepCopyInto

func (in *Ref) DeepCopyInto(out *Ref)

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

func (Ref) NotSet

func (r Ref) NotSet() bool

Determine if the ref either the ID or Name is set.

func (*Ref) String

func (r *Ref) String() (s string)

String representation.

type Refs

type Refs struct {
	List []Ref `json:"references,omitempty"`
}

Collection of Refs.

func (*Refs) DeepCopy

func (in *Refs) DeepCopy() *Refs

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

func (*Refs) DeepCopyInto

func (in *Refs) DeepCopyInto(out *Refs)

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

func (*Refs) Find

func (r *Refs) Find(ref Ref) (found bool)

Determine whether the list of refs contains a given ref.

Jump to

Keyboard shortcuts

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