Documentation ¶
Index ¶
- Variables
- type Change
- type Configuration
- func (ci *Configuration) AddOrUpdateDosProtectedResource(protectedConf *v1beta1.DosProtectedResource) ([]Change, []Problem)
- func (ci *Configuration) AddOrUpdateLogConf(logConfObj *unstructured.Unstructured) (changes []Change, problems []Problem)
- func (ci *Configuration) AddOrUpdatePolicy(policyObj *unstructured.Unstructured) (changes []Change, problems []Problem)
- func (ci *Configuration) DeleteLogConf(key string) (changes []Change, problems []Problem)
- func (ci *Configuration) DeletePolicy(key string) (changes []Change, problems []Problem)
- func (ci *Configuration) DeleteProtectedResource(key string) (changes []Change, problems []Problem)
- func (ci *Configuration) GetDosProtectedThatReferencedDosLogConf(key string) []*v1beta1.DosProtectedResource
- func (ci *Configuration) GetDosProtectedThatReferencedDosPolicy(key string) []*v1beta1.DosProtectedResource
- func (ci *Configuration) GetValidDosEx(parentNamespace string, nsName string) (*configs.DosEx, error)
- type DosLogConfEx
- type DosPolicyEx
- type DosProtectedResourceEx
- type Operation
- type Problem
Constants ¶
This section is empty.
Variables ¶
var ( // DosPolicyGVR is the group version resource of the appprotectdos policy DosPolicyGVR = schema.GroupVersionResource{ Group: "appprotectdos.f5.com", Version: "v1beta1", Resource: "apdospolicies", } // DosPolicyGVK is the group version kind of the appprotectdos policy DosPolicyGVK = schema.GroupVersionKind{ Group: "appprotectdos.f5.com", Version: "v1beta1", Kind: "APDosPolicy", } // DosLogConfGVR is the group version resource of the appprotectdos policy DosLogConfGVR = schema.GroupVersionResource{ Group: "appprotectdos.f5.com", Version: "v1beta1", Resource: "apdoslogconfs", } // DosLogConfGVK is the group version kind of the appprotectdos policy DosLogConfGVK = schema.GroupVersionKind{ Group: "appprotectdos.f5.com", Version: "v1beta1", Kind: "APDosLogConf", } )
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { // Op is an operation that needs be performed on the resource. Op Operation // Resource is the target resource. Resource interface{} }
Change represents a change in an App Protect Dos resource
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
Configuration holds representations of App Protect Dos cluster resources
func NewConfiguration ¶
func NewConfiguration(isDosEnabled bool) *Configuration
NewConfiguration creates a new App Protect Dos Configuration
func (*Configuration) AddOrUpdateDosProtectedResource ¶
func (ci *Configuration) AddOrUpdateDosProtectedResource(protectedConf *v1beta1.DosProtectedResource) ([]Change, []Problem)
AddOrUpdateDosProtectedResource adds or updates App Protect Dos ProtectedResource Configuration
func (*Configuration) AddOrUpdateLogConf ¶
func (ci *Configuration) AddOrUpdateLogConf(logConfObj *unstructured.Unstructured) (changes []Change, problems []Problem)
AddOrUpdateLogConf adds or updates App Protect Dos Log Configuration to App Protect Dos Configuration
func (*Configuration) AddOrUpdatePolicy ¶
func (ci *Configuration) AddOrUpdatePolicy(policyObj *unstructured.Unstructured) (changes []Change, problems []Problem)
AddOrUpdatePolicy adds or updates an App Protect Dos Policy to App Protect Dos Configuration
func (*Configuration) DeleteLogConf ¶
func (ci *Configuration) DeleteLogConf(key string) (changes []Change, problems []Problem)
DeleteLogConf deletes an App Protect Dos LogConf from App Protect Dos Configuration
func (*Configuration) DeletePolicy ¶
func (ci *Configuration) DeletePolicy(key string) (changes []Change, problems []Problem)
DeletePolicy deletes an App Protect Policy from App Protect Dos Configuration
func (*Configuration) DeleteProtectedResource ¶
func (ci *Configuration) DeleteProtectedResource(key string) (changes []Change, problems []Problem)
DeleteProtectedResource deletes an App Protect Dos ProtectedResource Configuration
func (*Configuration) GetDosProtectedThatReferencedDosLogConf ¶
func (ci *Configuration) GetDosProtectedThatReferencedDosLogConf(key string) []*v1beta1.DosProtectedResource
GetDosProtectedThatReferencedDosLogConf gets dos protected resources that mention the given dos log conf
func (*Configuration) GetDosProtectedThatReferencedDosPolicy ¶
func (ci *Configuration) GetDosProtectedThatReferencedDosPolicy(key string) []*v1beta1.DosProtectedResource
GetDosProtectedThatReferencedDosPolicy gets dos protected resources that mention the given dos policy
func (*Configuration) GetValidDosEx ¶
func (ci *Configuration) GetValidDosEx(parentNamespace string, nsName string) (*configs.DosEx, error)
GetValidDosEx returns a valid DosProtectedResource - extended with referenced policies and logs
type DosLogConfEx ¶
type DosLogConfEx struct { Obj *unstructured.Unstructured IsValid bool ErrorMsg string }
DosLogConfEx represents an DosLogConf cluster resource
type DosPolicyEx ¶
type DosPolicyEx struct { Obj *unstructured.Unstructured IsValid bool ErrorMsg string }
DosPolicyEx represents an DosPolicy cluster resource
type DosProtectedResourceEx ¶
type DosProtectedResourceEx struct { Obj *v1beta1.DosProtectedResource IsValid bool ErrorMsg string }
DosProtectedResourceEx represents an DosProtectedResource cluster resource
type Operation ¶
type Operation int
Operation defines an operation to perform for an App Protect Dos resource.
type Problem ¶
type Problem struct { // Object is a configuration object. Object runtime.Object // Reason tells the reason. It matches the reason in the events of our configuration objects. Reason string // Message gives the details about the problem. It matches the message in the events of our configuration objects. Message string }
Problem represents a problem with an App Protect Dos resource