Documentation
¶
Index ¶
- func HydrateResources(model Model, fromDir string) error
- func Model2Bundle(model Model, output string) error
- func Model2BundleDir(model Model, output string) error
- func Model2BundleZip(model Model, outputZip string) error
- func ValidateAPIProxy(v *APIProxy, path string) []error
- func ValidateAudience(v *Audience, path string) []error
- func ValidateAuthentication(v *Authentication, path string) []error
- func ValidateDefaultFaultRule(v *DefaultFaultRule, path string) []error
- func ValidateFaultRule(v *FaultRule, path string) []error
- func ValidateFaultRules(v *FaultRules, path string) []error
- func ValidateFlow(v *Flow, path string) []error
- func ValidateFlows(v *Flows, path string) []error
- func ValidateGoogleAccessToken(v *GoogleAccessToken, path string) []error
- func ValidateGoogleIDToken(v *GoogleIDToken, path string) []error
- func ValidateHTTPProxyConnection(v *HTTPProxyConnection, path string) []error
- func ValidateHTTPTargetConnection(v *HTTPTargetConnection, path string) []error
- func ValidateLoadBalancer(v *LoadBalancer, path string) []error
- func ValidateLocalTargetConnection(v *LocalTargetConnection, path string) []error
- func ValidatePostFlow(v *PostFlow, path string) []error
- func ValidatePreFlow(v *PreFlow, path string) []error
- func ValidateProperties(v *Properties, path string) []error
- func ValidateProperty(v *Property, path string) []error
- func ValidateProxyEndpoint(v *ProxyEndpoint, path string) []error
- func ValidateProxyEndpoints(v *ProxyEndpoints, path string) []error
- func ValidateRequest(v *Request, path string) []error
- func ValidateResource(v *Resource, path string) []error
- func ValidateResources(v *Resources, path string) []error
- func ValidateResponse(v *Response, path string) []error
- func ValidateRouteRule(v *RouteRule, path string) []error
- func ValidateRouteRules(v *RouteRuleList, path string) []error
- func ValidateSSLInfo(v *SSLInfo, path string) []error
- func ValidateServer(v *Server, path string) []error
- func ValidateServers(v *Servers, path string) []error
- func ValidateSharedFlow(v *SharedFlow, path string) []error
- func ValidateSharedFlowBundle(v *SharedFlowBundle, path string) []error
- func ValidateSharedFlows(v *SharedFlows, path string) []error
- func ValidateStep(v *Step, path string) []error
- func ValidateSteps(v *StepList, path string) []error
- func ValidateTargetEndpoint(v *TargetEndpoint, path string) []error
- func ValidateTargetEndpoints(v *TargetEndpoints, path string) []error
- type APIProxy
- type APIProxyModel
- func (a *APIProxyModel) BundleFiles() []BundleFile
- func (a *APIProxyModel) BundleRoot() string
- func (a *APIProxyModel) DisplayName() string
- func (a *APIProxyModel) GetResources() *Resources
- func (a *APIProxyModel) Hydrate(filePath string) error
- func (a *APIProxyModel) Name() string
- func (a *APIProxyModel) Revision() int
- func (a *APIProxyModel) Validate() error
- func (a *APIProxyModel) XML() ([]byte, error)
- func (a *APIProxyModel) YAML() ([]byte, error)
- type APIProxyRef
- type AnyList
- type AnyNode
- type Audience
- type Authentication
- type BundleFile
- type DefaultFaultRule
- type Deprecated
- type Extension
- type FaultRule
- type FaultRuleList
- type FaultRules
- type Flow
- type FlowList
- type Flows
- type GoogleAccessToken
- type GoogleIDToken
- type HTTPProxyConnection
- type HTTPTargetConnection
- type LoadBalancer
- type LocalTargetConnection
- type Model
- type Policies
- type Policy
- type PolicyList
- type PostFlow
- type PreFlow
- type Properties
- type Property
- type PropertyList
- type ProxyEndpoint
- type ProxyEndpointList
- type ProxyEndpointRef
- type ProxyEndpoints
- type Request
- type Resource
- type ResourceList
- type Resources
- type Response
- type RouteRule
- type RouteRuleList
- type SSLInfo
- type Scope
- type ScopeList
- type Server
- type ServerList
- type Servers
- type SharedFlow
- type SharedFlowBundle
- type SharedFlowBundleModel
- func (a *SharedFlowBundleModel) BundleFiles() []BundleFile
- func (a *SharedFlowBundleModel) BundleRoot() string
- func (a *SharedFlowBundleModel) DisplayName() string
- func (a *SharedFlowBundleModel) GetResources() *Resources
- func (a *SharedFlowBundleModel) Hydrate(filePath string) error
- func (a *SharedFlowBundleModel) Name() string
- func (a *SharedFlowBundleModel) Revision() int
- func (a *SharedFlowBundleModel) Validate() error
- func (a *SharedFlowBundleModel) XML() ([]byte, error)
- func (a *SharedFlowBundleModel) YAML() ([]byte, error)
- type SharedFlowList
- type SharedFlows
- type Step
- type StepList
- type TargetEndpoint
- type TargetEndpoints
- type TargetEndpointsList
- type UnknownNodeError
- type ValidationErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HydrateResources ¶
func Model2Bundle ¶
func Model2BundleDir ¶
func Model2BundleZip ¶
func ValidateAPIProxy ¶
func ValidateAudience ¶
func ValidateAuthentication ¶
func ValidateAuthentication(v *Authentication, path string) []error
func ValidateDefaultFaultRule ¶
func ValidateDefaultFaultRule(v *DefaultFaultRule, path string) []error
func ValidateFaultRule ¶
func ValidateFaultRules ¶
func ValidateFaultRules(v *FaultRules, path string) []error
func ValidateFlow ¶
func ValidateFlows ¶
func ValidateGoogleAccessToken ¶
func ValidateGoogleAccessToken(v *GoogleAccessToken, path string) []error
func ValidateGoogleIDToken ¶
func ValidateGoogleIDToken(v *GoogleIDToken, path string) []error
func ValidateHTTPProxyConnection ¶
func ValidateHTTPProxyConnection(v *HTTPProxyConnection, path string) []error
func ValidateHTTPTargetConnection ¶
func ValidateHTTPTargetConnection(v *HTTPTargetConnection, path string) []error
func ValidateLoadBalancer ¶
func ValidateLoadBalancer(v *LoadBalancer, path string) []error
func ValidateLocalTargetConnection ¶
func ValidateLocalTargetConnection(v *LocalTargetConnection, path string) []error
func ValidatePostFlow ¶
func ValidatePreFlow ¶
func ValidateProperties ¶
func ValidateProperties(v *Properties, path string) []error
func ValidateProperty ¶
func ValidateProxyEndpoint ¶
func ValidateProxyEndpoint(v *ProxyEndpoint, path string) []error
func ValidateProxyEndpoints ¶
func ValidateProxyEndpoints(v *ProxyEndpoints, path string) []error
func ValidateRequest ¶
func ValidateResource ¶
func ValidateResources ¶
func ValidateResponse ¶
func ValidateRouteRule ¶
func ValidateRouteRules ¶
func ValidateRouteRules(v *RouteRuleList, path string) []error
func ValidateSSLInfo ¶
func ValidateServer ¶
func ValidateServers ¶
func ValidateSharedFlow ¶
func ValidateSharedFlow(v *SharedFlow, path string) []error
func ValidateSharedFlowBundle ¶
func ValidateSharedFlowBundle(v *SharedFlowBundle, path string) []error
func ValidateSharedFlows ¶
func ValidateSharedFlows(v *SharedFlows, path string) []error
func ValidateStep ¶
func ValidateSteps ¶
func ValidateTargetEndpoint ¶
func ValidateTargetEndpoint(v *TargetEndpoint, path string) []error
func ValidateTargetEndpoints ¶
func ValidateTargetEndpoints(v *TargetEndpoints, path string) []error
Types ¶
type APIProxy ¶
type APIProxy struct { Revision int `xml:"revision,attr"` Name string `xml:"name,attr"` DisplayName string `xml:"DisplayName,omitempty"` Description string `xml:"Description,omitempty"` CreatedAt int64 `xml:"CreatedAt,omitempty"` LastModifiedAt int64 `xml:"LastModifiedAt,omitempty"` //-- deprecated fields Spec *Deprecated `xml:"Spec"` ConfigurationVersion *Deprecated `xml:"ConfigurationVersion"` BasePaths *Deprecated `xml:"BasePaths"` Policies *Deprecated `xml:"Policies"` Resources *Deprecated `xml:"Resources"` ProxyEndpoints *Deprecated `xml:"ProxyEndpoints"` TargetEndpoints *Deprecated `xml:"TargetEndpoints"` UnknownNode AnyList `xml:",any"` }
func (*APIProxy) FileContents ¶
type APIProxyModel ¶
type APIProxyModel struct { APIProxy APIProxy `xml:"APIProxy"` Policies Policies `xml:"Policies"` ProxyEndpoints ProxyEndpoints `xml:"ProxyEndpoints"` TargetEndpoints TargetEndpoints `xml:"TargetEndpoints"` Resources Resources `xml:"Resources"` UnknownNode AnyList `xml:",any"` YAMLDoc *yaml.Node `xml:"-"` }
func NewAPIProxyModel ¶
func NewAPIProxyModel(input string) (*APIProxyModel, error)
func (*APIProxyModel) BundleFiles ¶
func (a *APIProxyModel) BundleFiles() []BundleFile
func (*APIProxyModel) BundleRoot ¶
func (a *APIProxyModel) BundleRoot() string
func (*APIProxyModel) DisplayName ¶
func (a *APIProxyModel) DisplayName() string
func (*APIProxyModel) GetResources ¶
func (a *APIProxyModel) GetResources() *Resources
func (*APIProxyModel) Hydrate ¶
func (a *APIProxyModel) Hydrate(filePath string) error
func (*APIProxyModel) Name ¶
func (a *APIProxyModel) Name() string
func (*APIProxyModel) Revision ¶
func (a *APIProxyModel) Revision() int
func (*APIProxyModel) Validate ¶
func (a *APIProxyModel) Validate() error
func (*APIProxyModel) XML ¶
func (a *APIProxyModel) XML() ([]byte, error)
func (*APIProxyModel) YAML ¶
func (a *APIProxyModel) YAML() ([]byte, error)
type APIProxyRef ¶
type APIProxyRef struct {
Value string `xml:",chardata"`
}
type Authentication ¶
type Authentication struct { GoogleIDToken *GoogleIDToken `xml:"GoogleIDToken"` GoogleAccessToken *GoogleAccessToken `xml:"GoogleAccessToken"` UnknownNode AnyList `xml:",any"` }
type BundleFile ¶
type DefaultFaultRule ¶
type Deprecated ¶
type Deprecated AnyNode
type FaultRuleList ¶
type FaultRuleList []*FaultRule
type FaultRules ¶
type FaultRules struct { List FaultRuleList `xml:"FaultRule"` UnknownNode AnyList `xml:",any"` }
type GoogleAccessToken ¶
type GoogleIDToken ¶
type HTTPProxyConnection ¶
type HTTPProxyConnection struct { BasePath string `xml:"BasePath"` Properties *Properties `xml:"Properties"` UnknownNode AnyList `xml:",any"` }
type HTTPTargetConnection ¶
type HTTPTargetConnection struct { URL string `xml:"URL,omitempty"` Path string `xml:"Path,omitempty"` Authentication *Authentication `xml:"Authentication,omitempty"` LoadBalancer *LoadBalancer `xml:"LoadBalancer,omitempty"` SSLInfo *SSLInfo `xml:"SSLInfo,omitempty"` Properties *Properties `xml:"Properties"` UnknownNode AnyList `xml:",any"` }
type LoadBalancer ¶
type LocalTargetConnection ¶
type LocalTargetConnection struct { Path string `xml:"Path,omitempty"` APIProxy *APIProxyRef `xml:"APIProxy,omitempty"` ProxyEndpoint *ProxyEndpointRef `xml:"ProxyEndpoint,omitempty"` UnknownNode AnyList `xml:",any"` }
type Policies ¶
type Policies struct {
List PolicyList `xml:",any"`
}
type PolicyList ¶
type PolicyList []*Policy
type Properties ¶
type Properties struct { List PropertyList `xml:"Property,omitempty"` UnknownNode AnyList `xml:",any"` }
type PropertyList ¶
type PropertyList []*Property
type ProxyEndpoint ¶
type ProxyEndpoint struct { Name string `xml:"name,attr"` Description string `xml:"Description,omitempty"` FaultRules *FaultRules `xml:"FaultRules"` DefaultFaultRule *DefaultFaultRule `xml:"DefaultFaultRule,omitempty"` PreFlow *PreFlow `xml:"PreFlow,omitempty"` Flows *Flows `xml:"Flows,omitempty"` PostFlow *PostFlow `xml:"PostFlow,omitempty"` HTTPProxyConnection *HTTPProxyConnection `xml:"HTTPProxyConnection,omitempty"` RouteRules *RouteRuleList `xml:"RouteRule,omitempty"` UnknownNode AnyList `xml:",any"` }
func (*ProxyEndpoint) FileContents ¶
func (p *ProxyEndpoint) FileContents() ([]byte, error)
func (*ProxyEndpoint) FileName ¶
func (p *ProxyEndpoint) FileName() string
func (*ProxyEndpoint) FilePath ¶
func (p *ProxyEndpoint) FilePath() string
func (*ProxyEndpoint) XML ¶
func (p *ProxyEndpoint) XML() ([]byte, error)
type ProxyEndpointList ¶
type ProxyEndpointList []*ProxyEndpoint
type ProxyEndpointRef ¶
type ProxyEndpointRef struct {
Value string `xml:",chardata"`
}
type ProxyEndpoints ¶
type ProxyEndpoints struct { List ProxyEndpointList `xml:"ProxyEndpoint,omitempty"` UnknownNode AnyList `xml:",any"` }
type Resource ¶
type Resource struct { Type string `xml:"Type"` Path string `xml:"Path"` Content []byte `xml:"-"` UnknownNode AnyList `xml:",any"` }
func (*Resource) FileContents ¶
type ResourceList ¶
type ResourceList []*Resource
type Resources ¶
type Resources struct { List ResourceList `xml:"Resource,omitempty"` UnknownNode AnyList `xml:",any"` }
type RouteRuleList ¶
type RouteRuleList []*RouteRule
type SSLInfo ¶
type SSLInfo struct { Enabled bool `xml:"Enabled"` Enforce bool `xml:"Enforce"` ClientAuthEnabled bool `xml:"ClientAuthEnabled,omitempty"` KeyStore string `xml:"KeyStore,omitempty"` KeyAlias string `xml:"KeyAlias,omitempty"` TrustStore string `xml:"TrustStore,omitempty"` IgnoreValidationErrors bool `xml:"IgnoreValidationErrors,omitempty"` UnknownNode AnyList `xml:",any"` }
type ServerList ¶
type ServerList []*Server
type Servers ¶
type Servers struct { List ServerList `xml:"Server,omitempty"` UnknownNode AnyList `xml:",any"` }
type SharedFlow ¶
type SharedFlow struct {}
func (*SharedFlow) FileContents ¶
func (a *SharedFlow) FileContents() ([]byte, error)
func (*SharedFlow) FileName ¶
func (a *SharedFlow) FileName() string
func (*SharedFlow) FilePath ¶
func (a *SharedFlow) FilePath() string
func (*SharedFlow) XML ¶
func (a *SharedFlow) XML() ([]byte, error)
type SharedFlowBundle ¶
type SharedFlowBundle struct { //-- deprecated fields }
func (*SharedFlowBundle) FileContents ¶
func (a *SharedFlowBundle) FileContents() ([]byte, error)
func (*SharedFlowBundle) FileName ¶
func (a *SharedFlowBundle) FileName() string
func (*SharedFlowBundle) FilePath ¶
func (a *SharedFlowBundle) FilePath() string
func (*SharedFlowBundle) XML ¶
func (a *SharedFlowBundle) XML() ([]byte, error)
type SharedFlowBundleModel ¶
type SharedFlowBundleModel struct {}
func NewSharedFlowBundleModel ¶
func NewSharedFlowBundleModel(input string) (*SharedFlowBundleModel, error)
func (*SharedFlowBundleModel) BundleFiles ¶
func (a *SharedFlowBundleModel) BundleFiles() []BundleFile
func (*SharedFlowBundleModel) BundleRoot ¶
func (a *SharedFlowBundleModel) BundleRoot() string
func (*SharedFlowBundleModel) DisplayName ¶
func (a *SharedFlowBundleModel) DisplayName() string
func (*SharedFlowBundleModel) GetResources ¶
func (a *SharedFlowBundleModel) GetResources() *Resources
func (*SharedFlowBundleModel) Hydrate ¶
func (a *SharedFlowBundleModel) Hydrate(filePath string) error
func (*SharedFlowBundleModel) Name ¶
func (a *SharedFlowBundleModel) Name() string
func (*SharedFlowBundleModel) Revision ¶
func (a *SharedFlowBundleModel) Revision() int
func (*SharedFlowBundleModel) Validate ¶
func (a *SharedFlowBundleModel) Validate() error
func (*SharedFlowBundleModel) XML ¶
func (a *SharedFlowBundleModel) XML() ([]byte, error)
func (*SharedFlowBundleModel) YAML ¶
func (a *SharedFlowBundleModel) YAML() ([]byte, error)
type SharedFlowList ¶
type SharedFlowList []*SharedFlow
type SharedFlows ¶
type SharedFlows struct {}
type TargetEndpoint ¶
type TargetEndpoint struct { Name string `xml:"name,attr"` Description string `xml:"Description,omitempty"` FaultRules *FaultRules `xml:"FaultRules,omitempty"` DefaultFaultRule *DefaultFaultRule `xml:"DefaultFaultRule,omitempty"` PreFlow PreFlow `xml:"PreFlow"` Flows Flows `xml:"Flows"` PostFlow PostFlow `xml:"PostFlow"` HTTPTargetConnection *HTTPTargetConnection `xml:"HTTPTargetConnection,omitempty"` LocalTargetConnection *LocalTargetConnection `xml:"LocalTargetConnection,omitempty"` UnknownNode AnyList `xml:",any"` }
func (*TargetEndpoint) FileContents ¶
func (p *TargetEndpoint) FileContents() ([]byte, error)
func (*TargetEndpoint) FileName ¶
func (p *TargetEndpoint) FileName() string
func (*TargetEndpoint) FilePath ¶
func (p *TargetEndpoint) FilePath() string
func (*TargetEndpoint) XML ¶
func (p *TargetEndpoint) XML() ([]byte, error)
type TargetEndpoints ¶
type TargetEndpoints struct { List TargetEndpointsList `xml:"TargetEndpoint,omitempty"` UnknownNode AnyList `xml:",any"` }
type TargetEndpointsList ¶
type TargetEndpointsList []*TargetEndpoint
type UnknownNodeError ¶
func (*UnknownNodeError) Error ¶
func (e *UnknownNodeError) Error() string
type ValidationErrors ¶
type ValidationErrors struct {
Errors []error
}
func (ValidationErrors) Error ¶
func (e ValidationErrors) Error() string
Source Files
¶
- apiproxy.go
- apiproxymodel.go
- audience.go
- authentication.go
- bundlefile.go
- defaultfaultrule.go
- extension.go
- faultrule.go
- faultrules.go
- flow.go
- flows.go
- googleaccesstoken.go
- googleidtoken.go
- httpproxyconnection.go
- httptargetconnection.go
- loadbalancer.go
- localtargetconnection.go
- model.go
- policies.go
- policy.go
- postflow.go
- preflow.go
- properties.go
- property.go
- proxyendpoint.go
- proxyendpoints.go
- request.go
- resource.go
- resources.go
- response.go
- routerule.go
- routerules.go
- servers.go
- sharedflow.go
- sharedflowbundle.go
- sharedflowbundlemodel.go
- sharedflows.go
- sslinfo.go
- step.go
- steps.go
- targetendpoint.go
- targetendpoints.go
- targetserver.go
- unknown.go
Click to show internal directories.
Click to hide internal directories.