package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev
# Functions
Emit saves the provided event to the audit log of the local cluster of the provided operator.
EmitForOperation emits audit event for the provided operation.
EventForOperation returns an appropriate event for the provided operation.
FieldsForOperation returns event fields for the provided operation.
FieldsForRelease returns event fields for the provided application release.
# Constants
AlertCreatedCode is the monitoring alert created event code.
AlertCreatedEvent fires when monitoring alert is created/updated.
AlertDeletedCode is the monitoring alert deleted event code.
AlertDeletedEvent fires when monitoring alert is deleted.
AlertTargetCreatedCode is the monitoring alert target created event code.
AlertTargetCreatedEvent fires when monitoring alert target is created/updated.
AlertTargetDeletedCode is the monitoring alert target deleted event code.
AlertTargetDeletedEvent fires when monitoring alert target is deleted.
AppInstalledEvent fires when an application image is installed.
ApplicationInstallCode is the application release install event code.
ApplicationRollbackCode is the application release rollback event code.
ApplicationUninstallCode is the application release uninstall event code.
ApplicationUpgradeCode is the application release upgrade event code.
AppRolledBackEvent fires when an application release is rolled back.
AppUninstalledEvent fires when an application release is uninstalled.
AppUpgradedEvent fires when an application release is upgraded.
AuthGatewayUpdatedCode is the auth gateway updated event code.
AuthGatewayUpdatedEvent fires when auth gateway settings are updated.
AuthPreferenceUpdatedCode is the cluster auth preference updated event code.
AuthPreferenceUpdatedEvent fires when cluster auth preference is updated.
ClusterActivatedEvent fires when cluster becomes healthy again.
ClusterDegradedEvent fires when cluster health check fails.
ClusterHealthyCode is the cluster goes healthy event code.
ClusterUnhealthyCode is the cluster goes unhealthy event code.
FieldCluster contains name of the cluster that generated an event.
FieldKind contains resource kind.
FieldName contains name, e.g.
FieldNodeHostname contains hostname of the joining/leaving node.
FieldNodeIP contains IP of the joining/leaving node.
FieldNodeRole contains role of the joining/leaving node.
FieldOperationID contains ID of the operation.
FieldOperationType contains type of the operation.
FieldOwner contains name of the user a resource belongs to.
FieldReason contains cluster deactivation reason.
FieldReleaseName contains application release name.
FieldRoles contains roles of a new user.
FieldTime contains event time.
FieldUser contains name of the user who triggered an event.
FieldVersion contains application package version.
GithubConnectorCreatedCode is the Github connector created event code.
GithubConnectorCreatedEvent fires when a Github connector is created/updated.
GithubConnectorDeletedCode is the Github connector deleted event code.
GithubConnectorDeletedEvent fires when a Github connector is deleted.
InviteCreatedEvent fires when a new user invitation is generated.
LogForwarderCreatedCode is the log forwarder created event code.
LogForwarderCreatedEvent fires when a log forwarder is created/updated.
LogForwarderDeletedCode is the log forwarder deleted event code.
LogForwarderDeletedEvent fires when a log forwarder is deleted.
OperationCompletedEvent fires when an operation completes successfully.
OperationConfigCompleteCode is the cluster configuration update operation complete event code.
OperationConfigFailureCode is the cluster configuration update operation failure event code.
OperationConfigStartCode is the cluster configuration update operation start event code.
OperationEnvCompleteCode is the runtime environment update operation complete event code.
OperationEnvFailureCode is the runtime environment update operation failure event code.
OperationEnvStartCode is the runtime environment update operation start event code.
OperationExpandCompleteCode is the expand operation complete event code.
OperationExpandFailureCode is the expand operation failure event code.
OperationExpandStartCode is the expand operation start event code.
OperationFailedEvent fires when an operation completes with error.
OperationGCCompleteCode is the garbage collect operation complete event code.
OperationGCFailureCode is the garbage collect operation failure event code.
OperationGCStartCode is the garbage collect operation start event code.
OperationInstallCompleteCode is the install operation complete event code.
OperationInstallFailureCode is the install operation failure event code.
OpereationInstallStartCode is the install operation start event code.
OperationReconfigureCompleteCode is the cluster reconfigure operation complete event code.
OperationReconfigureFailureCode is the cluster reconfigure operation failure event code.
OperationReconfigureStartCode is the cluster reconfigure operation start event code.
OperationShrinkCompleteCode is the shrink operation complete event code.
OperationShrinkFailureCode is the shrink operation failure event code.
OperationShrinkStartCide is the shrink operation start event code.
OperationStartedEvent fires when an operation starts.
OperationUninstallCompleteCode is the uninstall operation complete event code.
OperationUninstallFailureCode is the uninstall operation failure event code.
OperationUninstallStartCode is the uninstall operation start event code.
OperationUpdateCompeteCode is the update operation complete event code.
OperationUpdateFailureCode is the update operation failure event code.
OperationUpdateStartCode is the update operation start event code.
PersistentStorageUpdatedCode is the persistent storage updated event code.
PersistentStorageUpdatedEvent fires when persistent storage configuration is updated.
SMTPConfigCreatedCode is the SMTP configuration updated event code.
SMTPConfigCreatedEvent fires when SMTP config is created/updated.
SMTPConfigDeletedCode is the SMTP configuration deleted event code.
SMTPConfigDeletedEvent fires when SMTP config is deleted.
TLSKeyPairCreatedCode is the TLS key pair created event code.
TLSKeyPairCreatedEvent fires when a TLS key pair is created/updated.
TLSKeyPairDeletedCode is the TLS key pair deleted event code.
TLSKeyPairDeletedEvent fires when a TLS key pair is deleted.
TokenCreatedCode is the user token created event code.
TokenCreatedEvent fires when a token is created/updated.
TokenDeletedCode is the user token deleted event code.
TokenDeletedEvent fires when a token is deleted.
UserCreatedCode is the user created event code.
UserCreatedEvent fires when a user is created/updated.
UserDeletedCode is the user deleted event code.
UserDeletedEvent fires when a user is deleted.
UserInviteCreatedCode is the user invite created event code.
# Variables
AlertCreated is emitted when monitoring alert is created/updated.
AlertDeleted is emitted when monitoring alert is deleted.
AlertTargetCreated is emitted when monitoring alert target is created/updated.
AlertTargetDeleted is emitted when monitoring alert target is deleted.
ApplicationInstall is emitted when a new application image is installed.
ApplicationRollback is emitted when an application release is rolled back.
ApplicationUninstall is emitted when an application release is uninstalled.
ApplicationUpgrade is emitted when an application release is upgraded.
AuthGatewayUpdated is emitted when cluster auth gateway settings are updated.
AuthPreferenceUpdated is emitted when cluster auth preference is updated.
ClusterHealthy is emitted when cluster becomes healthy.
ClusterUnhealthy is emitted when cluster becomes unhealthy.
GithubConnectorCreated is emitted when a Github connector is created/updated.
GithubConnectorDeleted is emitted when a Github connector is deleted.
LogForwarderCreated is emitted when a log forwarder is created/updated.
LogForwarderDeleted is emitted when a log forwarder is deleted.
OperationConfigComplete is emitted when cluster configuration update successfully completes.
OperationConfigFailure is emitted when cluster configuration update fails.
OperationConfigStart is emitted when cluster configuration update launches.
OperationEnvComplete is emitted when cluster runtime environment update successfully completes.
OperationEnvFailure is emitted when cluster runtime environment update fails.
OperationEnvStart is emitted when cluster runtime environment update is launched.
OperationExpandComplete is emitted when a node has successfully joined the cluster.
OperationExpandFailure is emitted when a node fails to join the cluster.
OperationExpandStart is emitted when a new node starts joining the cluster.
OperationGCComplete is emitted when cluster garbage collection successfully completes.
OperationGCFailure is emitted when cluster garbage collection fails.
OperationGCStart is emitted when garbage collection is started on a cluster.
OperationInstallComplete is emitted when a cluster installation successfully completes.
OperationInstallFailure is emitted when a cluster installation fails.
OperationInstallStart is emitted when a cluster installation starts.
OperationReconfigureComplete is emitted when advertise IP reconfiguration completes.
OperationReconfigureFailure is emitted when advertise IP reconfiguration fails.
OperationReconfigureStart is emitted when advertise IP is being reconfigured.
OperationShrinkComplete is emitted when a node has left the cluster.
OperationShrinkFailure is emitted when a node fails to leave the cluster.
OperationShrinkStart is emitted when a node is leaving the cluster.
OperationUninstallComplete is emitted when cluster has been uninstalled.
OperationUninstallFailure is emitted when cluster uninstall fails.
OperationUninstallStart is emitted when cluster uninstall is launched.
OperationUpdateComplete is emitted when cluster upgrade successfully finishes.
OperationUpdateFailure is emitted when cluster upgrade fails.
OperationUpdateStart is emitted when cluster upgrade is started.
PersistentStorageUpdated is emitted when persistent storage configuration is updated.
SMTPConfigCreated is emitted when SMTP configuration is created/updated.
SMTPConfigDeleted is emitted when SMTP configuration is deleted.
TLSKeyPairCreated is emitted when cluster web certificate is updated.
TLSKeyPairDeleted is emitted when cluster web certificate is deleted.
TokenCreated is emitted when a token is created/updated.
TokenDeleted is emitted when a token is deleted.
UserCreated is emitted when a user is created/updated.
UserDeleted is emitted when a user is deleted.
UserInviteCreated is emitted when a user invite is created.
# Type aliases
Fields defines event fields.