action

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package action provider action constants and utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

Action represents the action that was taken on a resource.

const (
	NoOp             Action = "NOOP"
	Create           Action = "CREATE"
	Read             Action = "READ"
	Update           Action = "UPDATE"
	DeleteThenCreate Action = "DELETE_THEN_CREATE"
	CreateThenDelete Action = "CREATE_THEN_DELETE"
	Delete           Action = "DELETE"
)

Action constants

func UnmarshalActions

func UnmarshalActions(actions tjson.Actions) (Action, error)

UnmarshalActions unmarshals a slice of actions into a single Action.

func (Action) IsReplace

func (a Action) IsReplace() bool

IsReplace returns true if the action is one of the two actions that represents replacing an existing object with a new object: DeleteThenCreate or CreateThenDelete.

Jump to

Keyboard shortcuts

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