v2

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionAll    = []string{s3_api.ActionAll}
	PrincipalAll = []string{s3_api.PrincipalAll}
	ResourceAll  = []string{s3_api.ResourceAll}
)

Functions

This section is empty.

Types

type IBAPolicy

type IBAPolicy struct {
	Version   string      `json:"Version,omitempty"`
	Statement []Statement `json:"Statement,omitempty"`
}

func (*IBAPolicy) StatementLen

func (p *IBAPolicy) StatementLen() int

func (*IBAPolicy) String

func (p *IBAPolicy) String() (string, error)

func (*IBAPolicy) Valid

func (p *IBAPolicy) Valid() error

func (*IBAPolicy) VersionString

func (p *IBAPolicy) VersionString() string

type RBAPolicy

type RBAPolicy struct {
	Version   string      `json:"Version,omitempty"`
	Id        string      `json:"Id,omitempty"`
	Statement []Statement `json:"Statement,omitempty"`
}

func (*RBAPolicy) StatementLen

func (p *RBAPolicy) StatementLen() int

func (*RBAPolicy) String

func (p *RBAPolicy) String() (string, error)

func (*RBAPolicy) Valid

func (p *RBAPolicy) Valid() error

func (*RBAPolicy) VersionString

func (p *RBAPolicy) VersionString() string

type Statement

type Statement struct {
	Sid          string         `json:"Sid,omitempty"`
	Effect       string         `json:"Effect,omitempty"`
	Principal    map[string]any `json:"Principal,omitempty"`
	NotPrincipal map[string]any `json:"NotPrincipal,omitempty"`
	Action       []string       `json:"Action,omitempty"`
	NotAction    []string       `json:"NotAction,omitempty"`
	Resource     []string       `json:"Resource,omitempty"`
	NotResource  []string       `json:"NotResource,omitempty"`
}

func (*Statement) IBAPPrincipalValid

func (s *Statement) IBAPPrincipalValid() error

func (*Statement) Valid

func (s *Statement) Valid() error

Jump to

Keyboard shortcuts

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