Documentation ¶
Index ¶
Constants ¶
const ( ClusterEnabled = ClusterAction("enabled") ClusterDisabled = ClusterAction("disabled") ClusterCertificateUpdated = ClusterAction("certificate-updated") ClusterTokenCreated = ClusterAction("token-created") )
All supported lifecycle events for clusters.
const ( ClusterMemberAdded = ClusterMemberAction("added") ClusterMemberRemoved = ClusterMemberAction("removed") ClusterMemberUpdated = ClusterMemberAction("updated") ClusterMemberRenamed = ClusterMemberAction("renamed") )
All supported lifecycle events for cluster members.
const ( ImageCreated = ImageAction("created") ImageDeleted = ImageAction("deleted") ImageUpdated = ImageAction("updated") ImageRetrieved = ImageAction("retrieved") ImageRefreshed = ImageAction("refreshed") ImageSecretCreated = ImageAction("secret-created") )
All supported lifecycle events for images.
const ( ImageAliasCreated = ImageAliasAction("created") ImageAliasDeleted = ImageAliasAction("deleted") ImageAliasUpdated = ImageAliasAction("updated") ImageAliasRenamed = ImageAliasAction("renamed") )
All supported lifecycle events for image aliases.
const ( InstanceCreated = InstanceAction("created") InstanceStarted = InstanceAction("started") InstanceStopped = InstanceAction("stopped") InstanceShutdown = InstanceAction("shutdown") InstanceRestarted = InstanceAction("restarted") InstancePaused = InstanceAction("paused") InstanceResumed = InstanceAction("resumed") InstanceRestored = InstanceAction("restored") InstanceDeleted = InstanceAction("deleted") InstanceRenamed = InstanceAction("renamed") InstanceUpdated = InstanceAction("updated") InstanceExec = InstanceAction("exec") InstanceConsole = InstanceAction("console") InstanceFileRetrieved = InstanceAction("file-retrieved") InstanceFilePushed = InstanceAction("file-pushed") InstanceFileDeleted = InstanceAction("file-deleted") )
All supported lifecycle events for instances.
const ( InstanceBackupCreated = InstanceBackupAction("created") InstanceBackupDeleted = InstanceBackupAction("deleted") InstanceBackupRenamed = InstanceBackupAction("renamed") InstanceBackupRetrieved = InstanceBackupAction("retrieved") )
All supported lifecycle events for instance backups.
const ( InstanceSnapshotCreated = InstanceSnapshotAction("created") InstanceSnapshotDeleted = InstanceSnapshotAction("deleted") InstanceSnapshotRenamed = InstanceSnapshotAction("renamed") InstanceSnapshotUpdated = InstanceSnapshotAction("updated") )
All supported lifecycle events for instance snapshots.
const ( NetworkCreated = NetworkAction("created") NetworkDeleted = NetworkAction("deleted") NetworkUpdated = NetworkAction("updated") NetworkRenamed = NetworkAction("renamed") )
All supported lifecycle events for network devices.
const ( ProfileCreated = ProfileAction("created") ProfileDeleted = ProfileAction("deleted") ProfileUpdated = ProfileAction("updated") ProfileRenamed = ProfileAction("renamed") )
All supported lifecycle events for profiles.
const ( ProjectCreated = ProjectAction("created") ProjectDeleted = ProjectAction("deleted") ProjectUpdated = ProjectAction("updated") ProjectRenamed = ProjectAction("renamed") )
All supported lifecycle events for projects.
const ( StoragePoolCreated = StoragePoolAction("created") StoragePoolDeleted = StoragePoolAction("deleted") StoragePoolUpdated = StoragePoolAction("updated") )
All supported lifecycle events for storage pools.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterAction ¶
type ClusterAction string
ClusterAction represents a lifecycle event action for clusters.
func (ClusterAction) Event ¶
func (a ClusterAction) Event(name string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on a cluster.
type ClusterMemberAction ¶
type ClusterMemberAction string
ClusterMemberAction represents a lifecycle event action for cluster members.
func (ClusterMemberAction) Event ¶
func (a ClusterMemberAction) Event(name string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on a cluster member.
type ImageAction ¶
type ImageAction string
ImageAction represents a lifecycle event action for images.
func (ImageAction) Event ¶
func (a ImageAction) Event(image string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an image.
type ImageAliasAction ¶
type ImageAliasAction string
ImageAliasAction represents a lifecycle event action for image aliases.
func (ImageAliasAction) Event ¶
func (a ImageAliasAction) Event(image string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an image alias.
type InstanceAction ¶
type InstanceAction string
InstanceAction represents a lifecycle event action for instances.
func (InstanceAction) Event ¶
func (a InstanceAction) Event(inst instance, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an instance.
type InstanceBackupAction ¶
type InstanceBackupAction string
InstanceBackupAction represents a lifecycle event action for instance backups.
func (InstanceBackupAction) Event ¶
func (a InstanceBackupAction) Event(name string, inst instance, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an instance backup.
type InstanceSnapshotAction ¶
type InstanceSnapshotAction string
InstanceSnapshotAction represents a lifecycle event action for instance snapshots.
func (InstanceSnapshotAction) Event ¶
func (a InstanceSnapshotAction) Event(inst instance, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an instance snapshot.
type NetworkAction ¶
type NetworkAction string
NetworkAction represents a lifecycle event action for network devices.
func (NetworkAction) Event ¶
func (a NetworkAction) Event(n network, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on a network device.
type ProfileAction ¶
type ProfileAction string
ProfileAction represents a lifecycle event action for profiles.
func (ProfileAction) Event ¶
func (a ProfileAction) Event(name string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on a profile.
type ProjectAction ¶
type ProjectAction string
ProjectAction represents a lifecycle event action for projects.
func (ProjectAction) Event ¶
func (a ProjectAction) Event(name string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on a project.
type StoragePoolAction ¶
type StoragePoolAction string
StoragePoolAction represents a lifecycle event action for storage pools.
func (StoragePoolAction) Event ¶
func (a StoragePoolAction) Event(name string, projectName string, requestor *api.EventLifecycleRequestor, ctx map[string]interface{}) api.EventLifecycle
Event creates the lifecycle event for an action on an storage pool.