Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarkedCandidate ¶
type MarkedCandidate struct {
MarkerType MarkerType `json:"marker_type"`
CandidateType string `json:"candidate_type"`
Id string `json:"id"`
Owner string `json:"owner"`
Ttl string `json:"ttl"`
Purpose string `json:"purpose"`
Account string `json:"account"`
Tags map[string]string `json:"tags"`
}
func BuildCandidates ¶
func BuildCandidates(owner string, c cache.Cache) ([]*MarkedCandidate, error)
func (*MarkedCandidate) GenerateSlackAttachmentFields ¶
func (mc *MarkedCandidate) GenerateSlackAttachmentFields() []slack.AttachmentField
type Marker ¶
type Marker interface {
Mark()
Sweep()
GetMarkSchedule() string
GetSweepSchedule() string
GetNotifySchedule() string
GetName() string
GetType() MarkerType
}
type MarkerType ¶
type MarkerType int
const ( AWS MarkerType = 0 GCP MarkerType = 1 K8S MarkerType = 2 REQUIRED_TAG = "ttl" )
func (MarkerType) Color ¶
func (mt MarkerType) Color() string
func (MarkerType) String ¶
func (mt MarkerType) String() string
type NoCandidatesError ¶
type NoCandidatesError struct {
// contains filtered or unexported fields
}
func (*NoCandidatesError) Error ¶
func (e *NoCandidatesError) Error() string
Click to show internal directories.
Click to hide internal directories.