Documentation ¶
Overview ¶
Package tools contains set of specific functions used by CPS sub-provider
Index ¶
- Variables
- func CSRToMap(csr cps.CSR) map[string]interface{}
- func ContactInfoToMap(contact cps.Contact) map[string]interface{}
- func GetCSR(d *schema.ResourceData) (*cps.CSR, error)
- func GetChangeIDFromPendingChanges(pendingChanges []cps.PendingChange) (int, error)
- func GetContactInfo(set *schema.Set) (*cps.Contact, error)
- func GetEnrollmentID(location string) (int, error)
- func GetNetworkConfig(d *schema.ResourceData) (*cps.NetworkConfiguration, error)
- func GetOrg(d *schema.ResourceData) (*cps.Org, error)
- func HashFromChallengesMap(v interface{}) int
- func NetworkConfigToMap(networkConfig cps.NetworkConfiguration) map[string]interface{}
- func OrgToMap(org cps.Org) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
var ErrNoPendingChanges = errors.New("no pending changes were found on enrollment")
ErrNoPendingChanges represents error when no pending changes were found on enrollment
Functions ¶
func ContactInfoToMap ¶
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 []cps.PendingChange) (int, error)
GetChangeIDFromPendingChanges returns ChangeID of pending changes
func GetContactInfo ¶
GetContactInfo returns contact information from Set object
func GetEnrollmentID ¶
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
Types ¶
This section is empty.