Documentation ¶
Index ¶
- Variables
- func DefaultConfigurationFilter(obj interface{}) bool
- func GetErieCanalNamespace() string
- func GetErieCanalPodName() string
- func GetErieCanalPodNamespace() string
- func IssueCertForIngress(basepath string, repoClient *repo.PipyRepoClient, certMgr certificate.Manager, ...) error
- func RegisterConfigurationHanlder(handler ConfigEventHandler, configmapInformer ctrlruntimecache.Informer, ...)
- func UpdateIngressHTTPConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
- func UpdateIngressTLSConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
- func UpdateSSLPassthrough(basepath string, repoClient *repo.PipyRepoClient, enabled bool, ...) error
- type Certificate
- type Cluster
- type ConfigEventHandler
- type ConnectorConfig
- func (c *ConnectorConfig) ControlPlaneUID() string
- func (c *ConnectorConfig) GatewayHost() string
- func (c *ConnectorConfig) GatewayIP() net.IP
- func (c *ConnectorConfig) GatewayPort() int32
- func (c *ConnectorConfig) Group() string
- func (c *ConnectorConfig) IsInCluster() bool
- func (c *ConnectorConfig) Key() string
- func (c *ConnectorConfig) Name() string
- func (c *ConnectorConfig) Region() string
- func (c *ConnectorConfig) Zone() string
- type ErieCanalMetadata
- type FlomeshConfigurationHandler
- type GatewayApi
- type HTTP
- type Images
- type Ingress
- type MeshConfig
- func (o *MeshConfig) GetCaBundleName() string
- func (o *MeshConfig) GetCaBundleNamespace() string
- func (o *MeshConfig) GetDefaultIngressPath() string
- func (o *MeshConfig) GetDefaultServicesPath() string
- func (o *MeshConfig) IngressCodebasePath() string
- func (o *MeshConfig) IsControlPlane() bool
- func (o *MeshConfig) NamespacedIngressCodebasePath(namespace string) string
- func (o *MeshConfig) PipyImage() string
- func (o *MeshConfig) ProxyInitImage() string
- func (o *MeshConfig) RepoBaseURL() string
- func (o *MeshConfig) RepoRootURL() string
- func (o *MeshConfig) ServiceLbImage() string
- func (o *MeshConfig) ToJson() string
- type MeshConfigChangeListener
- type MeshConfigClient
- type ProxyInitEnvironmentConfiguration
- type Repo
- type SSLPassthrough
- type ServiceLB
- type Store
- type TLS
- type Webhook
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultWatchedConfigMaps = sets.String{}
)
Functions ¶
func DefaultConfigurationFilter ¶
func DefaultConfigurationFilter(obj interface{}) bool
func GetErieCanalNamespace ¶
func GetErieCanalNamespace() string
func GetErieCanalPodName ¶
func GetErieCanalPodName() string
func GetErieCanalPodNamespace ¶
func GetErieCanalPodNamespace() string
func IssueCertForIngress ¶
func IssueCertForIngress(basepath string, repoClient *repo.PipyRepoClient, certMgr certificate.Manager, mc *MeshConfig) error
func RegisterConfigurationHanlder ¶
func RegisterConfigurationHanlder(handler ConfigEventHandler, configmapInformer ctrlruntimecache.Informer, resyncPeriod time.Duration)
func UpdateIngressHTTPConfig ¶
func UpdateIngressHTTPConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
func UpdateIngressTLSConfig ¶
func UpdateIngressTLSConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
func UpdateSSLPassthrough ¶
Types ¶
type Certificate ¶
type ConfigEventHandler ¶
type ConnectorConfig ¶
type ConnectorConfig struct {
// contains filtered or unexported fields
}
func NewConnectorConfig ¶
func (*ConnectorConfig) ControlPlaneUID ¶
func (c *ConnectorConfig) ControlPlaneUID() string
func (*ConnectorConfig) GatewayHost ¶
func (c *ConnectorConfig) GatewayHost() string
func (*ConnectorConfig) GatewayIP ¶
func (c *ConnectorConfig) GatewayIP() net.IP
func (*ConnectorConfig) GatewayPort ¶
func (c *ConnectorConfig) GatewayPort() int32
func (*ConnectorConfig) Group ¶
func (c *ConnectorConfig) Group() string
func (*ConnectorConfig) IsInCluster ¶
func (c *ConnectorConfig) IsInCluster() bool
func (*ConnectorConfig) Key ¶
func (c *ConnectorConfig) Key() string
func (*ConnectorConfig) Name ¶
func (c *ConnectorConfig) Name() string
func (*ConnectorConfig) Region ¶
func (c *ConnectorConfig) Region() string
func (*ConnectorConfig) Zone ¶
func (c *ConnectorConfig) Zone() string
type ErieCanalMetadata ¶
type FlomeshConfigurationHandler ¶
type FlomeshConfigurationHandler struct {
// contains filtered or unexported fields
}
func (FlomeshConfigurationHandler) OnConfigMapAdd ¶
func (f FlomeshConfigurationHandler) OnConfigMapAdd(cm *corev1.ConfigMap)
func (FlomeshConfigurationHandler) OnConfigMapDelete ¶
func (f FlomeshConfigurationHandler) OnConfigMapDelete(cm *corev1.ConfigMap)
func (FlomeshConfigurationHandler) OnConfigMapUpdate ¶
func (f FlomeshConfigurationHandler) OnConfigMapUpdate(oldCm, cm *corev1.ConfigMap)
type GatewayApi ¶
type GatewayApi struct {
Enabled bool `json:"enabled"`
}
type MeshConfig ¶
type MeshConfig struct { IsManaged bool `json:"isManaged"` Repo Repo `json:"repo"` Images Images `json:"images"` Webhook Webhook `json:"webhook"` Ingress Ingress `json:"ingress"` GatewayApi GatewayApi `json:"gatewayApi"` Certificate Certificate `json:"certificate"` Cluster Cluster `json:"cluster"` ServiceLB ServiceLB `json:"serviceLB"` }
func ParseMeshConfig ¶
func ParseMeshConfig(cm *corev1.ConfigMap) (*MeshConfig, error)
func (*MeshConfig) GetCaBundleName ¶
func (o *MeshConfig) GetCaBundleName() string
func (*MeshConfig) GetCaBundleNamespace ¶
func (o *MeshConfig) GetCaBundleNamespace() string
func (*MeshConfig) GetDefaultIngressPath ¶
func (o *MeshConfig) GetDefaultIngressPath() string
func (*MeshConfig) GetDefaultServicesPath ¶
func (o *MeshConfig) GetDefaultServicesPath() string
func (*MeshConfig) IngressCodebasePath ¶
func (o *MeshConfig) IngressCodebasePath() string
func (*MeshConfig) IsControlPlane ¶
func (o *MeshConfig) IsControlPlane() bool
func (*MeshConfig) NamespacedIngressCodebasePath ¶
func (o *MeshConfig) NamespacedIngressCodebasePath(namespace string) string
func (*MeshConfig) PipyImage ¶
func (o *MeshConfig) PipyImage() string
func (*MeshConfig) ProxyInitImage ¶
func (o *MeshConfig) ProxyInitImage() string
func (*MeshConfig) RepoBaseURL ¶
func (o *MeshConfig) RepoBaseURL() string
func (*MeshConfig) RepoRootURL ¶
func (o *MeshConfig) RepoRootURL() string
func (*MeshConfig) ServiceLbImage ¶
func (o *MeshConfig) ServiceLbImage() string
func (*MeshConfig) ToJson ¶
func (o *MeshConfig) ToJson() string
type MeshConfigChangeListener ¶
type MeshConfigChangeListener interface { OnConfigCreate(cfg *MeshConfig) OnConfigUpdate(oldCfg, cfg *MeshConfig) OnConfigDelete(cfg *MeshConfig) }
type MeshConfigClient ¶
type MeshConfigClient struct {
// contains filtered or unexported fields
}
func NewMeshConfigClient ¶
func NewMeshConfigClient(k8sApi *kube.K8sAPI) *MeshConfigClient
func (*MeshConfigClient) GetConfig ¶
func (c *MeshConfigClient) GetConfig() *MeshConfig
func (*MeshConfigClient) UpdateConfig ¶
func (c *MeshConfigClient) UpdateConfig(config *MeshConfig) (*MeshConfig, error)
type ProxyInitEnvironmentConfiguration ¶
type ProxyInitEnvironmentConfiguration struct { MatchedProxyProfile string `envconfig:"MATCHED_PROXY_PROFILE" required:"true" split_words:"true"` ProxyRepoBaseUrl string `envconfig:"PROXY_REPO_BASE_URL" required:"true" split_words:"true"` ProxyRepoRootUrl string `envconfig:"PROXY_REPO_ROOT_URL" required:"true" split_words:"true"` ProxyParentPath string `envconfig:"PROXY_PARENT_PATH" required:"true" split_words:"true"` ProxyPaths []string `envconfig:"PROXY_PATHS" required:"true" split_words:"true"` }
type SSLPassthrough ¶
type Store ¶
type Store struct {
MeshConfig *MeshConfigClient
}
Click to show internal directories.
Click to hide internal directories.