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 ¶
View Source
var AllMethods = []string{MethodGet, MethodPost, MethodPut, MethodPatch, MethodDelete}
Functions ¶
func GenerateOPABundle ¶
func GenerateOPABundle() error
func GetRevision ¶
func GetRevision() string
func NewBundleController ¶
func NewBundleController() *controller
func RefreshOPABundle ¶
func RefreshOPABundle()
Types ¶
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 ResourceSpec ¶ added in v1.7.1
Click to show internal directories.
Click to hide internal directories.