providers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(policies []Policy) ([]byte, error)

Types

type Object

type Object struct {
	Resources []string `json:"resources"`
}

type Policy

type Policy struct {
	Version string  `json:"version"`
	Action  string  `json:"action"`
	Object  Object  `json:"object"`
	Subject Subject `json:"subject"`
}

func Decode

func Decode(policies []byte) ([]Policy, error)

type Service

type Service interface {
	WritePolicies(policies []Policy, destination io.Writer) error
	ReadPolicies(source io.Reader) ([]Policy, error)
}

type Subject

type Subject struct {
	AuthenticatedUsers []string `json:"authenticated_users"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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