Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Errors HTTPConnectionError = diag.Diagnostic{ Severity: diag.Error, Summary: "An error occurred", Detail: "Something went wrong with the HTTP request, for example a connection timeout, or TLS handshake error", } InvalidJSONError = diag.Diagnostic{ Severity: diag.Error, Summary: "Invalid JSON response", Detail: "A response was received, but could not be parsed as JSON; is your hostname correctly configured?", } Device42PasswordEncryptionPassphraseError = diag.Diagnostic{ Severity: diag.Error, Summary: "No password encryption secret is configured", Detail: "Go to Tools > Settings > Password Security in your Device42 instance to configure one", } Device42NoSecretsError = diag.Diagnostic{ Severity: diag.Error, Summary: "No passwords are stored", Detail: "Your Device42 instance seems to be correctly configured, but does not seem to contain any Secrets", } Device42NoMatchingSecretsError = diag.Diagnostic{ Severity: diag.Error, Summary: "No results were returned", Detail: "Potential causes: the secret does not exist, or you do not have View permission to it", } Device42APIPermissionError = diag.Diagnostic{ Severity: diag.Error, Summary: "REST API Access Denied", Detail: "Your user does not have permissions to access the Password APIs. The user may need to be added to one of the groups listed in Tools > Admins & Permissions > Admin Groups which has the 'Password | Can view password' permission", } Device42MultiplePasswordsWarning = diag.Diagnostic{ Severity: diag.Warning, Summary: "multiple passwords were returned", Detail: "multiple entries were returned; the first is being used. this should not be able to happen...", } )
Functions ¶
Types ¶
type Device42Password ¶
type Device42Password struct { Username string `json:"username,omitempty"` // Category string `json:"category,omitempty"` // DeviceIds []string `json:"device_ids,omitempty"` // ViewUsers string `json:"view_users,omitempty"` // ViewGroups string `json:"view_groups,omitempty"` // LastPwChange string `json:"last_pw_change,omitempty"` // Notes string `json:"notes,omitempty"` // Storage string `json:"storage,omitempty"` // UseOnlyUsers string `json:"use_only_users,omitempty"` Label string `json:"label,omitempty"` // ViewEditGroups string `json:"view_edit_groups,omitempty"` // FirstAdded string `json:"first_added,omitempty"` // UseOnlyGroups string `json:"use_only_groups,omitempty"` // StorageID int `json:"storage_id,omitempty"` // ViewEditUsers string `json:"view_edit_users,omitempty"` Password string `json:"password"` ID int `json:"id"` }
Device42Password is a struct containing all potential documented fields which may be returned from the Device42 password API
Click to show internal directories.
Click to hide internal directories.