Documentation ¶
Index ¶
- func BuildCWPBundle(cwps []securityv1.Property) ([]byte, string, error)
- func BuildCustomListenPortBundle(gw *securityv1.Gateway) ([]byte, string, error)
- func BuildDefaultListenPortBundle() ([]byte, string, error)
- func NewConfigMap(portal *securityv1alpha1.L7Portal, apiSummary []byte) *corev1.ConfigMap
- type Bundle
- type ClusterProperty
- type EnabledCipherSuites
- type EnabledFeatures
- type EnabledVersions
- type HttpMapping
- type Item
- type ListenPort
- type Mapping
- type Mappings
- type Policy
- type PolicyDetail
- type PolicyDetailProperties
- type PolicyProperty
- type PolicyResource
- type PolicyResourceSet
- type PolicyResources
- type PrivateKeyReference
- type Properties
- type Property
- type References
- type Resource
- type Service
- type ServiceDetail
- type ServiceMappings
- type ServiceProperties
- type ServiceProperty
- type ServiceResource
- type ServiceResourceSet
- type ServiceResources
- type TlsSettings
- type Verbs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCWPBundle ¶
func BuildCWPBundle(cwps []securityv1.Property) ([]byte, string, error)
func BuildCustomListenPortBundle ¶
func BuildCustomListenPortBundle(gw *securityv1.Gateway) ([]byte, string, error)
func NewConfigMap ¶
func NewConfigMap(portal *securityv1alpha1.L7Portal, apiSummary []byte) *corev1.ConfigMap
NewConfigMap
Types ¶
type Bundle ¶
type Bundle struct { XMLName xml.Name `xml:"Bundle"` XMLNS string `xml:"xmlns:l7,attr"` References References `xml:"References"` Mappings Mappings `xml:"Mappings"` }
type ClusterProperty ¶
type EnabledCipherSuites ¶
type EnabledCipherSuites struct {
StringValue []string `xml:"StringValue"`
}
type EnabledFeatures ¶
type EnabledFeatures struct {
StringValue []string `xml:"StringValue"`
}
type EnabledVersions ¶
type EnabledVersions struct {
StringValue []string `xml:"StringValue"`
}
type HttpMapping ¶
type ListenPort ¶
type ListenPort struct { ID string `xml:"id,attr"` Name string `xml:"Name"` Enabled string `xml:"Enabled"` Protocol string `xml:"Protocol"` Port string `xml:"Port"` EnabledFeatures EnabledFeatures `xml:"EnabledFeatures"` TlsSettings *TlsSettings `xml:"TlsSettings"` Properties Properties `xml:"Properties"` }
type Mapping ¶
type Mapping struct { Action string `xml:"action,attr"` SrcId string `xml:"srcId,attr"` Type string `xml:"type,attr"` Properties Properties `xml:"Properties"` }
type Policy ¶
type Policy struct { Guid string `xml:"guid,attr"` ID string `xml:"id,attr"` Version string `xml:"version,attr"` PolicyDetail PolicyDetail `xml:"PolicyDetail"` Resources PolicyResources }
type PolicyDetail ¶
type PolicyDetailProperties ¶
type PolicyDetailProperties struct { Text string `xml:",chardata"` Property []PolicyProperty }
type PolicyProperty ¶
type PolicyResource ¶
type PolicyResourceSet ¶
type PolicyResourceSet struct { Tag string `xml:"tag,attr"` Resource PolicyResource `xml:"Resource"` }
type PolicyResources ¶
type PolicyResources struct {
ResourceSet PolicyResourceSet `xml:"ResourceSet"`
}
type PrivateKeyReference ¶
type Properties ¶
type Properties struct {
Property []Property `xml:"Property"`
}
type References ¶
type References struct {
Item []Item `xml:"Item"`
}
type Resource ¶
type Resource struct { ClusterProperty *ClusterProperty `xml:"ClusterProperty,omitempty"` ListenPort *ListenPort `xml:"ListenPort,omitempty"` Policy *Policy `xml:"Policy,omitempty"` Service *Service `xml:"Service,omitempty"` }
type Service ¶
type Service struct { ID string `xml:"id,attr"` L7 string `xml:"l7,attr"` ServiceDetail ServiceDetail `xml:"ServiceDetail"` Properties ServiceProperty `xml:"Properties"` Resources ServiceResources `xml:"Resources"` }
type ServiceDetail ¶
type ServiceDetail struct { Text string `xml:",chardata"` FolderId string `xml:"folderId,attr"` ID string `xml:"id,attr"` Name string `xml:"Name"` Enabled bool `xml:"Enabled"` ServiceMappings ServiceMappings `xml:"ServiceMappings"` Properties ServiceProperties `xml:"Properties"` }
type ServiceMappings ¶
type ServiceMappings struct {
HttpMapping HttpMapping
}
type ServiceProperties ¶
type ServiceProperties struct {
Property []ServiceProperty `xml:"Property"`
}
type ServiceProperty ¶
type ServiceResource ¶
type ServiceResourceSet ¶
type ServiceResourceSet struct { Tag string `xml:"tag,attr"` Resource ServiceResource `xml:"Resource"` }
type ServiceResources ¶
type ServiceResources struct {
ResourceSet ServiceResourceSet `xml:"ResourceSet"`
}
type TlsSettings ¶
type TlsSettings struct { ClientAuthentication string `xml:"ClientAuthentication"` PrivateKeyReference PrivateKeyReference `xml:"PrivateKeyReference"` EnabledVersions EnabledVersions `xml:"EnabledVersions"` EnabledCipherSuites EnabledCipherSuites `xml:"EnabledCipherSuites"` UseCipherSuitesOrder bool `xml:"UseCipherSuitesOrder"` Properties Properties `xml:"Properties"` }
Click to show internal directories.
Click to hide internal directories.