Documentation
¶
Index ¶
- type Approval
- type CleanupApplyResult
- type CleanupCandidate
- type CleanupPlan
- type Manager
- func (m *Manager) ApplyCleanup(ctx context.Context, approvalID string) (CleanupApplyResult, error)
- func (m *Manager) Approve(approvalID string) error
- func (m *Manager) CreateCleanupPlan(ctx context.Context) (CleanupPlan, error)
- func (m *Manager) ListApprovals() ([]Approval, error)
- func (m *Manager) Reject(approvalID string) error
- func (m *Manager) SetNote(approvalID, note string) error
- func (m *Manager) Status(ctx context.Context) (Status, error)
- type Options
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approval ¶
type Approval struct {
ID string `json:"id"`
Type string `json:"type"`
Status string `json:"status"`
RequestedAt time.Time `json:"requested_at"`
UpdatedAt time.Time `json:"updated_at"`
ReviewedAt *time.Time `json:"reviewed_at,omitempty"`
Plan CleanupPlan `json:"plan"`
Note string `json:"note,omitempty"`
}
type CleanupApplyResult ¶
type CleanupCandidate ¶
type CleanupPlan ¶
type CleanupPlan struct {
ApprovalID string `json:"approval_id"`
CreatedAt time.Time `json:"created_at"`
TotalBytes int64 `json:"total_bytes"`
Candidates []CleanupCandidate `json:"candidates"`
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ApplyCleanup ¶
func (*Manager) CreateCleanupPlan ¶
func (m *Manager) CreateCleanupPlan(ctx context.Context) (CleanupPlan, error)
func (*Manager) ListApprovals ¶
Click to show internal directories.
Click to hide internal directories.