Documentation ¶
Index ¶
- Constants
- func ApplyGraphmanBundle(username string, password string, target string, encpass string, bundle []byte) error
- func ApplyToGraphmanTarget(path string, singleton bool, username string, password string, target string, ...) error
- func BuildCWPBundle(cwps []securityv1.Property) ([]byte, string, error)
- func BuildCustomListenPortBundle(gw *securityv1.Gateway) ([]byte, string, error)
- func BuildDefaultListenPortBundle() ([]byte, string, error)
- func CloneRepository(url string, username string, token string, branch string, tag string, ...) (string, error)
- func CompressGraphmanBundle(path string) ([]byte, error)
- func Contains(arr []string, str string) bool
- func ConvertOpaqueMapToGraphmanBundle(secrets []GraphmanSecret) ([]byte, error)
- func ConvertX509ToGraphmanBundle(keys []GraphmanKey) ([]byte, error)
- func DefaultLabels(name string, additionalLabels map[string]string) map[string]string
- func GetOperatorNamespace() (string, error)
- func GetWatchNamespace() (string, error)
- func RestCall(method string, URL string, insecureSkipVerify bool, headers map[string]string, ...) ([]byte, error)
- func Unzip(src string, dest string) ([]string, error)
- type Bundle
- type CachedSyncRequest
- type ClusterProperty
- type EnabledCipherSuites
- type EnabledFeatures
- type EnabledVersions
- type GraphmanKey
- type GraphmanSecret
- type Item
- type ListenPort
- type Mapping
- type Mappings
- type PrivateKeyReference
- type Properties
- type Property
- type References
- type Resource
- type SyncCache
- type SyncRequest
- type TlsSettings
Constants ¶
View Source
const WatchNamespaceEnvVar = "WATCH_NAMESPACE"
Variables ¶
This section is empty.
Functions ¶
func ApplyGraphmanBundle ¶ added in v1.0.2
func ApplyToGraphmanTarget ¶
func BuildCWPBundle ¶
func BuildCWPBundle(cwps []securityv1.Property) ([]byte, string, error)
func BuildCustomListenPortBundle ¶
func BuildCustomListenPortBundle(gw *securityv1.Gateway) ([]byte, string, error)
func CloneRepository ¶
func CompressGraphmanBundle ¶
func ConvertOpaqueMapToGraphmanBundle ¶ added in v1.0.2
func ConvertOpaqueMapToGraphmanBundle(secrets []GraphmanSecret) ([]byte, error)
func ConvertX509ToGraphmanBundle ¶ added in v1.0.2
func ConvertX509ToGraphmanBundle(keys []GraphmanKey) ([]byte, error)
func DefaultLabels ¶
func GetOperatorNamespace ¶
GetOperatorNamespace returns the namespace of the operator pod
func GetWatchNamespace ¶
GetWatchNamespace returns the namespace the operator should be watching for changes
Types ¶
type Bundle ¶
type Bundle struct { XMLName xml.Name `xml:"l7:Bundle"` XMLNS string `xml:"xmlns:l7,attr"` References References `xml:"l7:References"` Mappings Mappings `xml:"l7:Mappings"` }
type CachedSyncRequest ¶ added in v1.0.2
type CachedSyncRequest struct { SyncRequest // contains filtered or unexported fields }
type ClusterProperty ¶
type EnabledCipherSuites ¶
type EnabledCipherSuites struct {
StringValue []string `xml:"l7:StringValue"`
}
type EnabledFeatures ¶
type EnabledFeatures struct {
StringValue []string `xml:"l7:StringValue"`
}
type EnabledVersions ¶
type EnabledVersions struct {
StringValue []string `xml:"l7:StringValue"`
}
type GraphmanKey ¶ added in v1.0.2
type GraphmanSecret ¶ added in v1.0.2
type ListenPort ¶
type ListenPort struct { ID string `xml:"id,attr"` Name string `xml:"l7:Name"` Enabled string `xml:"l7:Enabled"` Protocol string `xml:"l7:Protocol"` Port string `xml:"l7:Port"` EnabledFeatures EnabledFeatures `xml:"l7:EnabledFeatures"` TlsSettings *TlsSettings `xml:"l7:TlsSettings"` Properties Properties `xml:"l7:Properties"` }
type Mapping ¶
type Mapping struct { Action string `xml:"action,attr"` SrcId string `xml:"srcId,attr"` Type string `xml:"type,attr"` Properties Properties `xml:"l7:Properties"` }
type PrivateKeyReference ¶
type Properties ¶
type Properties struct {
Property []Property `xml:"l7:Property"`
}
type References ¶
type References struct {
Item []Item `xml:"l7:Item"`
}
type Resource ¶
type Resource struct { ClusterProperty *ClusterProperty `xml:"l7:ClusterProperty,omitempty"` ListenPort *ListenPort `xml:"l7:ListenPort,omitempty"` }
type SyncCache ¶ added in v1.0.2
type SyncCache struct {
// contains filtered or unexported fields
}
func NewSyncCache ¶ added in v1.0.2
func (*SyncCache) Read ¶ added in v1.0.2
func (sc *SyncCache) Read(requestName string) (SyncRequest, error)
func (*SyncCache) Update ¶ added in v1.0.2
func (sc *SyncCache) Update(sr SyncRequest, expiryTimestamp int64)
type SyncRequest ¶ added in v1.0.2
type TlsSettings ¶
type TlsSettings struct { ClientAuthentication string `xml:"l7:ClientAuthentication"` PrivateKeyReference PrivateKeyReference `xml:"l7:PrivateKeyReference"` EnabledVersions EnabledVersions `xml:"l7:EnabledVersions"` EnabledCipherSuites EnabledCipherSuites `xml:"l7:EnabledCipherSuites"` UseCipherSuitesOrder bool `xml:"l7:UseCipherSuitesOrder"` Properties Properties `xml:"l7:Properties"` }
Click to show internal directories.
Click to hide internal directories.