Documentation
¶
Overview ¶
CredHub credential types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Type string `json:"type" yaml:"type"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
VersionCreatedAt string `json:"version_created_at" yaml:"version_created_at"`
DurationOverridden bool `json:"duration_overridden,omitempty" yaml:"duration_overridden,omitempty"`
DurationUsed int `json:"duration_used,omitempty" yaml:"duration_used,omitempty"`
}
Base fields of a credential
type BulkRegenerateResults ¶
type BulkRegenerateResults struct {
Certificates []string `json:"regenerated_credentials" yaml:"regenerated_credentials"`
}
Type needed for Bulk Regenerate functionality
type Certificate ¶
type Certificate struct {
Base `yaml:",inline"`
Value values.Certificate `json:"value"`
}
A Certificate type credential
type CertificateMetadata ¶
type CertificateMetadata struct {
Id string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
SignedBy string `json:"signed_by" yaml:"signed_by"`
Signs []string `json:"signs" yaml:"signs"`
Versions []CertificateMetadataVersion `json:"versions" yaml:"versions"`
}
type CertificateMetadataVersion ¶
type CertificateMetadataVersion struct {
Id string `json:"id" yaml:"id"`
ExpiryDate string `json:"expiry_date" yaml:"expiry_date"`
Transitional bool `json:"transitional" yaml:"transitional"`
CertificateAuthority bool `json:"certificate_authority" yaml:"certificate_authority"`
SelfSigned bool `json:"self_signed" yaml:"self_signed"`
}
type Credential ¶
type Credential struct {
Base `yaml:",inline"`
Value interface{} `json:"value"`
}
A generic credential
Used when the Type of the credential is not known ahead of time.
Value will be as unmarshalled by https://golang.org/pkg/encoding/json/#Unmarshal
func (Credential) MarshalJSON ¶
func (c Credential) MarshalJSON() ([]byte, error)
func (Credential) MarshalYAML ¶
func (c Credential) MarshalYAML() (interface{}, error)
type FindResults ¶
type FindResults struct {
Credentials []struct {
Name string `json:"name" yaml:"name"`
VersionCreatedAt string `json:"version_created_at" yaml:"version_created_at"`
} `json:"credentials" yaml:"credentials"`
}
Types needed for Find functionality
type SSH ¶
type SSH struct {
Base `yaml:",inline"`
Value struct {
values.SSH `yaml:",inline"`
PublicKeyFingerprint string `json:"public_key_fingerprint" yaml:"public_key_fingerprint"`
} `json:"value"`
}
An SSH type credential
Click to show internal directories.
Click to hide internal directories.