credentials

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountTypeSystem  = "SYSTEM"
	AccountTypeService = "SERVICE"
	AccountTypeUser    = "USER"
)
View Source
const (
	ResourceTypeEsxi          = "ESXI"
	ResourceTypeVcenter       = "VCENTER"
	ResourceTypePsc           = "PSC"
	ResourceTypeNsxManager    = "NSX_MANAGER"
	ResourceTypeNsxController = "NSX_CONTROLLER"
	ResourceTypeNsxEdge       = "NSX_EDGE"
	ResourceTypeNsxtManager   = "NSXT_MANAGER"
	ResourceTypeVrli          = "VRLI"
	ResourceTypeVra           = "VRA"
	ResourceTypeWsa           = "WSA"
	ResourceTypeVrslcm        = "VRSLCM"
	ResourceTypeVxrailManager = "VXRAIL_MANAGER"
	ResourceTypeNsxAlb        = "NSX_ALB"
	ResourceTypeBackup        = "BACKUP"
)
View Source
const (
	ConfigAutoRotate = "UPDATE_AUTO_ROTATE_POLICY"
	Rotate           = "ROTATE"
	Update           = "UPDATE"
)
View Source
const (
	AutorotateDays30  = 30
	AutorotateDays60  = 60
	AutorotateDays90  = 90
	AutorotateDaysMax = AutorotateDays90
	AutoRotateDaysMin = 1
)

Variables

This section is empty.

Functions

func AllAccountTypes

func AllAccountTypes() []string

func AllCredentialTypes

func AllCredentialTypes() []string

func AllResourceTypes

func AllResourceTypes() []string

func CreateAutoRotatePolicy

func CreateAutoRotatePolicy(ctx context.Context, data *schema.ResourceData, meta interface{}) error

func CreatePasswordChangeID

func CreatePasswordChangeID(data *schema.ResourceData, operation string) (string, error)

func CredentialDataSubresource

func CredentialDataSubresource() *schema.Resource

func FlattenCredentials

func FlattenCredentials(creds []*models.Credential) []map[string]interface{}

func HashFields

func HashFields(fields []string) (string, error)

func ReadCredentials

func ReadCredentials(ctx context.Context, data *schema.ResourceData, apiClient *client.VcfClient) ([]*models.Credential, error)

func RemoveAutoRotatePolicy

func RemoveAutoRotatePolicy(ctx context.Context, data *schema.ResourceData, meta interface{}) error

func RotatePasswords

func RotatePasswords(ctx context.Context, data *schema.ResourceData, meta interface{}) error

func UpdatePasswords

func UpdatePasswords(ctx context.Context, data *schema.ResourceData, meta interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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