Documentation
¶
Index ¶
Constants ¶
View Source
const ( TemporaryR2TokenName = "CFNUKE-TEMPORARY-R2ADMIN" WorkersR2StorageWritePermissionGroupId = "bf7481a1826f439697cb59a20b22293e" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCollector ¶ added in v0.8.2
type AccountCollector func(*Credentials) (Resources, error)
AccountCollector collects resources at the account level (no zone context)
type Credentials ¶
type Resource ¶
type Resource struct {
Removable
AccountID string
ResourceID string
ResourceName string
ProductName string
Error atomic.Value // stores error message string for failed resources
// contains filtered or unexported fields
}
func (*Resource) GetError ¶ added in v0.7.0
GetError returns the error message for the resource (thread-safe)
func (*Resource) SetError ¶ added in v0.7.0
SetError stores an error message for the resource (thread-safe)
func (*Resource) SetState ¶ added in v0.5.1
func (r *Resource) SetState(s ResourceState)
SetState sets the state of the resource (thread-safe)
func (*Resource) State ¶
func (r *Resource) State() ResourceState
State returns the current state of the resource (thread-safe)
type ResourceState ¶
type ResourceState int32
const ( // Ready is the default state (zero value) for new resources Ready ResourceState = iota Removing Deleted Failed Filtered Hidden )
func (ResourceState) String ¶
func (i ResourceState) String() string
type Resources ¶
type Resources []*Resource
func (Resources) NumOf ¶
func (r Resources) NumOf(state ResourceState) int
func (Resources) VisibleCount ¶
type ZoneCollector ¶ added in v0.8.2
type ZoneCollector func(*Credentials, *Zone) (Resources, error)
ZoneCollector collects resources for a specific zone
Click to show internal directories.
Click to hide internal directories.