Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOpaVersion ¶
CleanOpaVersion takes a version of Opa and returns back a string in the form of `/major.minor` version. There are various dashes and dots and other descriptors in Opa version strings, which has often created confusion in code and incorrect parsing, and hence this function does not return the patch version (on which shouldn't rely on anyways).
func GetOpaClient ¶
func GetOpaClient(opt OpaClientConfig) (*opa.Client, error)
GetOpaClient returns a Opa opa
Types ¶
type Defaulter ¶
type Defaulter struct {
// contains filtered or unexported fields
}
Defaulter registers types and fills in struct fields with default values.
func GetOpaDefaulter ¶
GetOpaDefaulter returns a defaulter which can set default values for Opa entities.
func (*Defaulter) MustSet ¶
func (d *Defaulter) MustSet(arg interface{})
MustSet is like Set but panics if there is an error.
type HeaderRoundTripper ¶
type HeaderRoundTripper struct {
// contains filtered or unexported fields
}
HeaderRoundTripper injects Headers into requests made via RT.
type OpaClientConfig ¶
type OpaClientConfig struct { Address string Headers []string TLSSkipVerify bool TLSServerName string TLSCACert string Debug bool }
OpaClientConfig holds config details to use to talk to a Opa server.
type OpaRawState ¶
OpaRawState contains all of Opa Data
type OpaTransformer ¶
type OpaTransformer struct { }
OpaTransformer default types
func (OpaTransformer) Transformer ¶
Transformer reflect types