Documentation
¶
Overview ¶
Package safety re-exports the safety-level semantics from github.com/Dynatrace/dtctl/sdk/session, where the implementation moved: a readonly context must mean the same thing in dtctl and every dtctl-* plugin, so the checker is part of the shared session layer. This package remains so the root module's import surface is stable; new code should import sdk/session directly.
Index ¶
Constants ¶
const ( OperationRead = session.OperationRead OperationCreate = session.OperationCreate OperationUpdate = session.OperationUpdate OperationDelete = session.OperationDelete OperationDeleteBucket = session.OperationDeleteBucket OwnershipUnknown = session.OwnershipUnknown OwnershipOwn = session.OwnershipOwn )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult = session.CheckResult
type Checker ¶
func NewCheckerWithLevel ¶
func NewCheckerWithLevel(contextName string, level config.SafetyLevel) *Checker
type ResourceOwnership ¶
type ResourceOwnership = session.ResourceOwnership
func DetermineOwnership ¶
func DetermineOwnership(resourceOwnerID, currentUserID string) ResourceOwnership
type SafetyError ¶
type SafetyError = session.SafetyError