tools

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPendingChanges = errors.New("no pending changes were found on enrollment")

ErrNoPendingChanges represents error when no pending changes were found on enrollment

Functions

func CSRToMap

func CSRToMap(csr cps.CSR) map[string]interface{}

CSRToMap converts CSR object to a map and returns it

func ContactInfoToMap

func ContactInfoToMap(contact cps.Contact) map[string]interface{}

ContactInfoToMap returns a map with contact information from Contact object

func GetCSR

func GetCSR(d *schema.ResourceData) (*cps.CSR, error)

GetCSR returns Certificate Signing Request object from ResourceData object

func GetChangeIDFromPendingChanges

func GetChangeIDFromPendingChanges(pendingChanges []string) (int, error)

GetChangeIDFromPendingChanges returns ChangeID of pending changes

func GetContactInfo

func GetContactInfo(set *schema.Set) (*cps.Contact, error)

GetContactInfo returns contact information from Set object

func GetEnrollmentID added in v2.3.0

func GetEnrollmentID(location string) (int, error)

GetEnrollmentID returns EnrollmentID from enrollment location

func GetNetworkConfig

func GetNetworkConfig(d *schema.ResourceData) (*cps.NetworkConfiguration, error)

GetNetworkConfig returns Network Configuration settings from ResourceData object

func GetOrg

func GetOrg(d *schema.ResourceData) (*cps.Org, error)

GetOrg returns organization information from ResourceData object

func HashFromChallengesMap

func HashFromChallengesMap(v interface{}) int

HashFromChallengesMap takes Challenges map as an argument. Calculates and returns hash of a domain

func NetworkConfigToMap

func NetworkConfigToMap(networkConfig cps.NetworkConfiguration) map[string]interface{}

NetworkConfigToMap converts NetworkConfiguration object to a map and returns it

func OrgToMap

func OrgToMap(org cps.Org) map[string]interface{}

OrgToMap converts Org object to a map and returns it

Types

This section is empty.

Jump to

Keyboard shortcuts

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