poledit

package module
v0.0.0-...-536a6e9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

Quick and dirty policy-editing tool

Usage:

% OCI_CLI_PROFILE=MY-POLICY ./poledit jang-sandbox:pol

You'll get dropped into an editor that holds the current set of statements, one per line. Exiting the editor cleanly will cause the policy to be updated.

The path to a policy is given by compartment-name:compartment-name:compartment-name:policy-name.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundError = errors.New("not found")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Find(ctx context.Context, parent string, name string, iam identity.IdentityClient) (Handler, error)
	WithDescription(description *string) Handler
	WithName(name *string) Handler

	Edit() (Handler, error)
	JsonEdit() (Handler, error)

	ShouldCreate() bool

	DoCreate(iam identity.IdentityClient, compartment identity.Compartment) error
	DoUpdate(iam identity.IdentityClient) error
	DoDelete(iam identity.IdentityClient) error
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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