Documentation
¶
Index ¶
- type Action
- type Collector
- type Credential
- func (c *Credential) Active() bool
- func (c *Credential) ActiveAndNotSeenBefore(credsSeen Credentials) bool
- func (c *Credential) LatestDeployedTo(deployment string) *Credential
- func (c *Credential) MarshalJSON() ([]byte, error)
- func (cred *Credential) NextAction(r RegenerationCriteria) Action
- func (c *Credential) PathVersion() string
- func (c *Credential) PendingDeploys() Deployments
- func (c *Credential) PrintCreatedAt() string
- func (c *Credential) PrintExpiry() string
- func (c *Credential) Summary() string
- type Credentials
- func (creds Credentials) Any() bool
- func (creds Credentials) Collect(fn Collector) Credentials
- func (creds Credentials) Find(filters ...Filter) (cred *Credential, found bool)
- func (ceds Credentials) Includes(this *Credential) bool
- func (creds Credentials) Select(filters ...Filter) Credentials
- func (creds Credentials) SortByCreatedAt()
- func (creds Credentials) SortByNameAndCreatedAt()
- func (creds Credentials) Unique() Credentials
- type Deployment
- type Deployments
- type Filter
- func ActiveFilter() Filter
- func AndFilter(fns ...Filter) Filter
- func AnyFilter(fn Collector) Filter
- func CertificateAuthorityFilter(expected bool) Filter
- func DeploymentFilter(deployment string) Filter
- func ExpiresBeforeFilter(t time.Time) Filter
- func LatestFilter() Filter
- func NameFilter(name string) Filter
- func NotFilter(fn Filter) Filter
- func OlderThanFilter(t time.Time) Filter
- func OrFilter(fns ...Filter) Filter
- func References(c *Credential) Filter
- func SelfSignedFilter() Filter
- func SignedByFilter(name string) Filter
- func SigningFilter() Filter
- func TransitionalFilter() Filter
- func TypeFilter(types ...credhub.CredentialType) Filter
- type Path
- type RegenerationCriteria
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
func ActionString ¶
ActionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Action) IsAAction ¶
IsAAction returns "true" if the value is listed in the enum definition. "false" otherwise
func (Action) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Action
func (*Action) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Action
type Collector ¶
type Collector func(c *Credential) Credentials
func SibilingsCollector ¶
func SibilingsCollector() Collector
func SignedByCollector ¶
func SignedByCollector() Collector
func SignsCollector ¶
func SignsCollector() Collector
type Credential ¶
type Credential struct { *credhub.Credential Deployments Deployments `json:"-"` SignedBy *Credential `json:"-"` ReferencedBy Credentials `json:"-"` References Credentials `json:"-"` Signs Credentials `json:"-"` Latest bool `json:"latest"` Signing *bool `json:"signing,omitempty"` Path *Path `json:"-"` }
func (*Credential) Active ¶
func (c *Credential) Active() bool
func (*Credential) ActiveAndNotSeenBefore ¶
func (c *Credential) ActiveAndNotSeenBefore(credsSeen Credentials) bool
func (*Credential) LatestDeployedTo ¶
func (c *Credential) LatestDeployedTo(deployment string) *Credential
func (*Credential) MarshalJSON ¶
func (c *Credential) MarshalJSON() ([]byte, error)
func (*Credential) NextAction ¶
func (cred *Credential) NextAction(r RegenerationCriteria) Action
func (*Credential) PathVersion ¶
func (c *Credential) PathVersion() string
func (*Credential) PendingDeploys ¶
func (c *Credential) PendingDeploys() Deployments
func (*Credential) PrintCreatedAt ¶
func (c *Credential) PrintCreatedAt() string
func (*Credential) PrintExpiry ¶
func (c *Credential) PrintExpiry() string
func (*Credential) Summary ¶
func (c *Credential) Summary() string
type Credentials ¶
type Credentials []*Credential
func (Credentials) Any ¶
func (creds Credentials) Any() bool
func (Credentials) Collect ¶
func (creds Credentials) Collect(fn Collector) Credentials
func (Credentials) Find ¶
func (creds Credentials) Find(filters ...Filter) (cred *Credential, found bool)
func (Credentials) Includes ¶
func (ceds Credentials) Includes(this *Credential) bool
func (Credentials) Select ¶
func (creds Credentials) Select(filters ...Filter) Credentials
func (Credentials) SortByCreatedAt ¶
func (creds Credentials) SortByCreatedAt()
func (Credentials) SortByNameAndCreatedAt ¶
func (creds Credentials) SortByNameAndCreatedAt()
func (Credentials) Unique ¶
func (creds Credentials) Unique() Credentials
type Deployment ¶
type Deployment struct { Versions Credentials `json:"-"` Name string `json:"name"` }
type Deployments ¶
type Deployments []*Deployment
func (Deployments) Includes ¶
func (d Deployments) Includes(this *Deployment) bool
func (Deployments) IncludesName ¶
func (d Deployments) IncludesName(name string) bool
func (Deployments) String ¶
func (d Deployments) String() string
type Filter ¶
type Filter func(*Credential) bool
func ActiveFilter ¶
func ActiveFilter() Filter
func DeploymentFilter ¶
func ExpiresBeforeFilter ¶
func LatestFilter ¶
func LatestFilter() Filter
func NameFilter ¶
func OlderThanFilter ¶
func References ¶
func References(c *Credential) Filter
func SelfSignedFilter ¶
func SelfSignedFilter() Filter
func SignedByFilter ¶
func SigningFilter ¶
func SigningFilter() Filter
func TransitionalFilter ¶
func TransitionalFilter() Filter
func TypeFilter ¶
func TypeFilter(types ...credhub.CredentialType) Filter
type Path ¶
type Path struct { Name string `json:"name"` Versions Credentials `json:"-"` VariableDefinition *bosh.VariableDefinition `json:"variable_definition"` Deployments Deployments }
type RegenerationCriteria ¶
Click to show internal directories.
Click to hide internal directories.