vapp

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package vapp provides common functionality for vApp resources.

Index

Constants

View Source
const (
	SchemaVappID   = "vapp_id"
	SchemaVappName = "vapp_name"
)
View Source
const (
	ErrVAppNotFound = "vApp not found"
)

Variables

View Source
var (
	// ErrVAppRefEmpty is returned when a vApp reference is missing information.
	ErrVAppRefEmpty = errors.New("missing information in vapp ref")

	DiagVAppNotFound = diag.NewErrorDiagnostic(ErrVAppNotFound, govcd.ErrorEntityNotFound.Error())
)

Functions

func Schema

func Schema() map[string]schemaR.Attribute

Schema

Return the schema for vapp_id and vapp_name with MarkdownDescription, Validators and PlanModifiers.

func SuperSchema added in v0.2.0

func SuperSchema() map[string]superschema.Attribute

SuperSchema

Return the superschema for vapp_id and vapp_name with MarkdownDescription, Validators and PlanModifiers.

Types

type VAPP

type VAPP struct {
	*v1.VAPP
	// contains filtered or unexported fields
}

func Create added in v0.2.0

func Create(vdc vdc.VDC, vappName, description string) (vapp VAPP, d diag.Diagnostics)

Create

Create vApp and return VAPP struct.

func Init

func Init(_ *client.CloudAvenue, vdc vdc.VDC, vappID, vappName types.String) (vapp VAPP, d diag.Diagnostics)

Init

Get vApp name or vApp ID. If mustExist is false, returns a warning for non existent vApp.

func (VAPP) LockVAPP

func (v VAPP) LockVAPP(ctx context.Context) (d diag.Diagnostics)

LockVAPP locks the parent vApp.

func (VAPP) UnlockVAPP

func (v VAPP) UnlockVAPP(ctx context.Context) (d diag.Diagnostics)

UnlockVAPP unlocks the parent vApp.

Jump to

Keyboard shortcuts

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