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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.