audit

package
v5.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	Read  []string `json:"read,omitempty"`
	Write []string `json:"write,omitempty"`
}

ACL represents an access control list.

type Entry

type Entry struct {
	Time   time.Time  `json:"time"`
	User   string     `json:"user"`
	Op     Operation  `json:"op"`
	Entity *charm.URL `json:"entity,omitempty"`
	ACL    *ACL       `json:"acl,omitempty"`
}

Entry represents an audit log entry.

type Operation

type Operation string

Operation represents the type of an entry.

const (
	// OpSetPerm represents the setting of ACLs on an entity.
	// Required fields: Entity, ACL
	OpSetPerm Operation = "set-perm"

	// OpPromulgate, OpUnpromulgate represent the promulgation on an entity.
	// Required fields: Entity
	OpPromulgate   Operation = "promulgate"
	OpUnpromulgate Operation = "unpromulgate"
)

Jump to

Keyboard shortcuts

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