Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +fybrik:validation:schema
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decision ¶
type Decision struct { // a decision regarding deployment: True = require, False = forbid, Unknown = allow Deploy DeploymentStatus `json:"deploy,omitempty"` // Deployment restrictions on modules, clusters and additional resources DeploymentRestrictions Restrictions `json:"restrictions,omitempty"` // Descriptions of policies that have been used for evaluation Policy DecisionPolicy `json:"policy,omitempty"` }
Decision is a result of evaluating a configuration policy which satisfies the specified predicates
func (*Decision) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Decision.
func (*Decision) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DecisionPerCapability ¶
type DecisionPerCapability struct { Capability taxonomy.Capability `json:"capability"` Decision Decision `json:"decision"` }
func (*DecisionPerCapability) DeepCopy ¶
func (in *DecisionPerCapability) DeepCopy() *DecisionPerCapability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecisionPerCapability.
func (*DecisionPerCapability) DeepCopyInto ¶
func (in *DecisionPerCapability) DeepCopyInto(out *DecisionPerCapability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DecisionPolicy ¶
type DecisionPolicy struct { ID string `json:"ID"` PolicySetID string `json:"policySetID,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` }
DecisionPolicy is a justification for a policy that consists of a unique id, id of a policy set and a human readable desciption
func (*DecisionPolicy) DeepCopy ¶
func (in *DecisionPolicy) DeepCopy() *DecisionPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecisionPolicy.
func (*DecisionPolicy) DeepCopyInto ¶
func (in *DecisionPolicy) DeepCopyInto(out *DecisionPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentStatus ¶
type DeploymentStatus string
+kubebuilder:validation:Enum=True;False;Unknown
const ( StatusTrue DeploymentStatus = "True" StatusFalse DeploymentStatus = "False" StatusUnknown DeploymentStatus = "Unknown" )
DeploymentStatus values
type EvaluationOutputStructure ¶
type EvaluationOutputStructure struct {
Config RuleDecisionList `json:"config"`
}
Result of query evaluation
func (*EvaluationOutputStructure) DeepCopy ¶
func (in *EvaluationOutputStructure) DeepCopy() *EvaluationOutputStructure
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EvaluationOutputStructure.
func (*EvaluationOutputStructure) DeepCopyInto ¶
func (in *EvaluationOutputStructure) DeepCopyInto(out *EvaluationOutputStructure)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Restriction ¶
type Restriction map[string]StringList
func (Restriction) DeepCopy ¶
func (in Restriction) DeepCopy() Restriction
func (Restriction) DeepCopyInto ¶
func (in Restriction) DeepCopyInto(out *Restriction)
Manual work-around because auto-generated code does not pass gosec checks
type Restrictions ¶
type Restrictions struct { Clusters Restriction `json:"clusters,omitempty"` Modules Restriction `json:"modules,omitempty"` StorageAccounts Restriction `json:"storageaccounts,omitempty"` }
Deployment restrictions on modules, clusters and additional resources that will be added in the future
func (*Restrictions) DeepCopy ¶
func (in *Restrictions) DeepCopy() *Restrictions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restrictions.
func (*Restrictions) DeepCopyInto ¶
func (in *Restrictions) DeepCopyInto(out *Restrictions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleDecisionList ¶
type RuleDecisionList []DecisionPerCapability
A list of decisions, e.g. [{"capability": "read", "decision": {"deploy": "True"}}, {"capability": "write", "decision": {"deploy": "False"}}]
func (RuleDecisionList) DeepCopy ¶
func (in RuleDecisionList) DeepCopy() RuleDecisionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleDecisionList.
func (RuleDecisionList) DeepCopyInto ¶
func (in RuleDecisionList) DeepCopyInto(out *RuleDecisionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StringList ¶
type StringList []string
Restriction maps a property to a list of allowed values. Semantics is a disjunction of values, i.e. a type can be either plugin or config.
func (StringList) DeepCopy ¶
func (in StringList) DeepCopy() StringList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StringList.
func (StringList) DeepCopyInto ¶
func (in StringList) DeepCopyInto(out *StringList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.