Documentation
¶
Index ¶
- Constants
- func CloseClient(client *edgedb.Client)
- func DeleteAutomatedException(ctx context.Context, client *edgedb.Client, automatedExceptionName string) error
- func DeleteKyvernoClusterPolicy(ctx context.Context, client *edgedb.Client, policyName string) error
- func DeletePolicy(ctx context.Context, client *edgedb.Client, policyName string) error
- func DeletePolicyConfig(ctx context.Context, client *edgedb.Client, policyConfigName string) error
- func DeletePolicyException(ctx context.Context, client *edgedb.Client, policyExceptionName string) error
- func GetEDGEDBClient(ctx context.Context, opts edgedb.Options) *edgedb.Client
- func SetupTypes(ctx context.Context, client *edgedb.Client) (edgedb.Optional, error)
- type Exception
- type KyvernoClusterPolicy
- type Policy
- type PolicyConfig
- type PolicyManifest
- type Target
Constants ¶
View Source
const (
EDGEDB_DSN = "" /* 142-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func CloseClient ¶
func CloseClient(client *edgedb.Client)
func DeleteAutomatedException ¶ added in v0.0.2
func DeletePolicy ¶
func DeletePolicyConfig ¶
func DeletePolicyException ¶
func GetEDGEDBClient ¶
func SetupTypes ¶
Types ¶
type Exception ¶
type Exception struct { ID edgedb.UUID `edgedb:"id"` Targets []Target `edgedb:"targets"` Policies []Policy `edgedb:"policies"` }
func InsertPolicyException ¶
type KyvernoClusterPolicy ¶
type KyvernoClusterPolicy struct { ID edgedb.UUID `edgedb:"id"` Name string `edgedb:"name"` RuleNames []string `edgedb:"ruleNames"` TargetKinds []string `edgedb:"targetKinds"` GiantSwarmExempt bool `edgedb:"gsExempt"` }
type Policy ¶
type Policy struct { ID edgedb.UUID `edgedb:"id"` Name string `edgedb:"name"` DefaultPolicyState edgedb.OptionalStr `edgedb:"defaultPolicyState"` }
func InsertPolicy ¶
type PolicyConfig ¶
type PolicyConfig struct { ID edgedb.UUID `edgedb:"id"` Name string `edgedb:"name"` PolicyName []Policy `edgedb:"policyName"` PolicyState edgedb.OptionalStr `edgedb:"policyState"` }
func InsertPolicyConfig ¶
func InsertPolicyConfig(ctx context.Context, client *edgedb.Client, policyConfig policyAPI.PolicyConfig) (PolicyConfig, error)
type PolicyManifest ¶
Click to show internal directories.
Click to hide internal directories.