Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type CredentialBulkImport ¶
type CredentialBulkImport struct {
Credentials []map[string]interface{} `yaml:"credentials"`
}
func (*CredentialBulkImport) ReadBytes ¶
func (credentialBulkImport *CredentialBulkImport) ReadBytes(data []byte) error
func (*CredentialBulkImport) ReadFile ¶
func (credentialBulkImport *CredentialBulkImport) ReadFile(filepath string) error
type CredentialResponse ¶
type CredentialResponse struct {
ResponseBody map[string]interface{}
}
func (CredentialResponse) ToJson ¶
func (response CredentialResponse) ToJson() string
func (CredentialResponse) ToYaml ¶
func (response CredentialResponse) ToYaml() string
type GenerateRequest ¶
type GenerateRequest struct { Name string `json:"name"` CredentialType string `json:"type"` Overwrite *bool `json:"overwrite"` Parameters *GenerationParameters `json:"parameters"` }
type GenerationParameters ¶
type GenerationParameters struct { IncludeSpecial bool `json:"include_special,omitempty"` ExcludeNumber bool `json:"exclude_number,omitempty"` ExcludeUpper bool `json:"exclude_upper,omitempty"` ExcludeLower bool `json:"exclude_lower,omitempty"` Length int `json:"length,omitempty"` CommonName string `json:"common_name,omitempty"` Organization string `json:"organization,omitempty"` OrganizationUnit string `json:"organization_unit,omitempty"` Locality string `json:"locality,omitempty"` State string `json:"state,omitempty"` Country string `json:"country,omitempty"` AlternativeName []string `json:"alternative_names,omitempty"` ExtendedKeyUsage []string `json:"extended_key_usage,omitempty"` KeyUsage []string `json:"key_usage,omitempty"` KeyLength int `json:"key_length,omitempty"` Duration int `json:"duration,omitempty"` Ca string `json:"ca,omitempty"` SelfSign bool `json:"self_sign,omitempty"` IsCA bool `json:"is_ca,omitempty"` SshComment string `json:"ssh_comment,omitempty"` Username string `json:"username,omitempty"` }
type Info ¶
type Info struct { App infoApp `json:"app"` AuthServer authServer `json:"auth-server"` }
type RegenerateRequest ¶
type RequestBody ¶
type RequestBody struct { CredentialType string `json:"type" binding:"required"` Name string `json:"name,omitempty"` Value interface{} `json:"value,omitempty"` Overwrite *bool `json:"overwrite,omitempty"` Parameters *GenerationParameters `json:"parameters,omitempty"` VersionCreatedAt string `json:"version_created_at,omitempty"` }
type ServerError ¶
Click to show internal directories.
Click to hide internal directories.