bundle

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OperatorIn           expressionOperator = "In"
	OperatorNotIn        expressionOperator = "NotIn"
	OperatorExists       expressionOperator = "Exists"
	OperatorDoesNotExist expressionOperator = "DoesNotExist"
)
View Source
const (
	MethodGet    = http.MethodGet
	MethodPost   = http.MethodPost
	MethodPut    = http.MethodPut
	MethodPatch  = http.MethodPatch
	MethodDelete = http.MethodDelete
)
View Source
const UpdateKey = "opa_bundle"

Variables

Functions

func GenerateOPABundle

func GenerateOPABundle() error

func GetRevision

func GetRevision() string

func NewBundleController

func NewBundleController() *controller

func RefreshOPABundle

func RefreshOPABundle()

Types

type Attribute added in v1.7.1

type Attribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Attributes added in v1.7.1

type Attributes []*Attribute

func (Attributes) LessOrEqual added in v1.7.1

func (a Attributes) LessOrEqual(other Attributes) bool

type Config added in v1.7.1

type Config struct {
	Bundles []*ResourceBundleService `json:"bundles"`
}

type ResourceBundle added in v1.7.1

type ResourceBundle map[string]resources

func AppendOPAResources added in v1.7.1

func AppendOPAResources(res ResourceBundle, resourceType string, objs []*ResourceSpec) ResourceBundle

func (ResourceBundle) MarshalJSON added in v1.7.1

func (r ResourceBundle) MarshalJSON() ([]byte, error)

type ResourceBundleService added in v1.7.1

type ResourceBundleService struct {
	Endpoint     string `json:"endpoint"`
	ResourceType string `json:"resourceType"`
}

type ResourceSpec added in v1.7.1

type ResourceSpec struct {
	ResourceID  string                 `json:"resourceID"`
	ProjectName string                 `json:"projectName"`
	Spec        map[string]interface{} `json:"spec"`
}

Jump to

Keyboard shortcuts

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