safety

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	OperationRead         = session.OperationRead
	OperationCreate       = session.OperationCreate
	OperationUpdate       = session.OperationUpdate
	OperationDelete       = session.OperationDelete
	OperationDeleteBucket = session.OperationDeleteBucket

	OwnershipUnknown = session.OwnershipUnknown
	OwnershipOwn     = session.OwnershipOwn
	OwnershipShared  = session.OwnershipShared
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult = session.CheckResult

type Checker

type Checker = session.Checker

func NewChecker

func NewChecker(contextName string, ctx *config.Context) *Checker

func NewCheckerWithLevel

func NewCheckerWithLevel(contextName string, level config.SafetyLevel) *Checker

type Operation

type Operation = session.Operation

type ResourceOwnership

type ResourceOwnership = session.ResourceOwnership

func DetermineOwnership

func DetermineOwnership(resourceOwnerID, currentUserID string) ResourceOwnership

type SafetyError

type SafetyError = session.SafetyError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL