portal

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 BuildDefaultListenPortBundle

func BuildDefaultListenPortBundle() ([]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 ClusterProperty struct {
	ID    string `xml:"id,attr"`
	Name  string `xml:"Name"`
	Value string `xml:"Value"`
}

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 HttpMapping struct {
	UrlPattern string `xml:"UrlPattern"`
	Verbs      Verbs  `xml:"Verbs"`
}

type Item

type Item struct {
	Name     string   `xml:"Name"`
	ID       string   `xml:"Id"`
	Type     string   `xml:"Type"`
	Resource Resource `xml:"Resource"`
}

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 Mappings

type Mappings struct {
	Mapping []Mapping `xml:"Mapping"`
}

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 PolicyDetail struct {
	FolderId   string                 `xml:"folderId,attr"`
	Guid       string                 `xml:"guid,attr"`
	ID         string                 `xml:"id,attr"`
	Name       string                 `xml:"Name"`
	PolicyType string                 `xml:"PolicyType"`
	Properties PolicyDetailProperties `xml:"Properties"`
}

type PolicyDetailProperties

type PolicyDetailProperties struct {
	Text     string `xml:",chardata"`
	Property []PolicyProperty
}

type PolicyProperty

type PolicyProperty struct {
	Text         string `xml:",chardata"`
	Key          string `xml:"key,attr"`
	LongValue    string `xml:"LongValue"`
	BooleanValue string `xml:"BooleanValue"`
}

type PolicyResource

type PolicyResource struct {
	Type string `xml:"type,attr"`
	Text string `xml:",chardata"`
}

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 PrivateKeyReference struct {
	ID          string `xml:"id,attr"`
	ResourceURI string `xml:"resourceUri,attr"`
}

type Properties

type Properties struct {
	Property []Property `xml:"Property"`
}

type Property

type Property struct {
	Key          string `xml:"key,attr"`
	StringValue  string `xml:"StringValue,omitempty"`
	BooleanValue bool   `xml:"BooleanValue,omitempty"`
}

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 ServiceProperty struct {
	Key          string `xml:"key,attr"`
	BooleanValue string `xml:"BooleanValue"`
	StringValue  string `xml:"StringValue"`
}

type ServiceResource

type ServiceResource struct {
	Text string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

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"`
}

type Verbs

type Verbs struct {
	Verb []string `xml:"Verb"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL