Documentation ¶
Index ¶
- Variables
- func DefaultConfigurationFilter(obj interface{}) bool
- func GetFsmNamespace() string
- func GetFsmPodName() string
- func GetFsmPodNamespace() 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 FlomeshConfigurationHandler
- type FsmMetadata
- 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 GetFsmNamespace ¶
func GetFsmNamespace() string
func GetFsmPodName ¶ added in v0.1.6
func GetFsmPodName() string
func GetFsmPodNamespace ¶ added in v0.1.6
func GetFsmPodNamespace() string
func IssueCertForIngress ¶ added in v0.2.0
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 ¶ added in v0.2.0
func UpdateIngressHTTPConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
func UpdateIngressTLSConfig ¶ added in v0.2.0
func UpdateIngressTLSConfig(basepath string, repoClient *repo.PipyRepoClient, mc *MeshConfig) error
func UpdateSSLPassthrough ¶ added in v0.2.0
Types ¶
type Certificate ¶
type ConfigEventHandler ¶
type ConnectorConfig ¶
type ConnectorConfig struct {
// contains filtered or unexported fields
}
func NewConnectorConfig ¶ added in v0.2.0
func (*ConnectorConfig) ControlPlaneUID ¶ added in v0.2.0
func (c *ConnectorConfig) ControlPlaneUID() string
func (*ConnectorConfig) GatewayHost ¶ added in v0.2.0
func (c *ConnectorConfig) GatewayHost() string
func (*ConnectorConfig) GatewayIP ¶ added in v0.2.0
func (c *ConnectorConfig) GatewayIP() net.IP
func (*ConnectorConfig) GatewayPort ¶ added in v0.2.0
func (c *ConnectorConfig) GatewayPort() int32
func (*ConnectorConfig) Group ¶ added in v0.2.0
func (c *ConnectorConfig) Group() string
func (*ConnectorConfig) IsInCluster ¶ added in v0.2.0
func (c *ConnectorConfig) IsInCluster() bool
func (*ConnectorConfig) Key ¶ added in v0.2.0
func (c *ConnectorConfig) Key() string
func (*ConnectorConfig) Name ¶ added in v0.2.0
func (c *ConnectorConfig) Name() string
func (*ConnectorConfig) Region ¶ added in v0.2.0
func (c *ConnectorConfig) Region() string
func (*ConnectorConfig) Zone ¶ added in v0.2.0
func (c *ConnectorConfig) Zone() string
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 FsmMetadata ¶ added in v0.1.6
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 ¶ added in v0.2.0
func (o *MeshConfig) GetCaBundleName() string
func (*MeshConfig) GetCaBundleNamespace ¶ added in v0.2.0
func (o *MeshConfig) GetCaBundleNamespace() string
func (*MeshConfig) GetDefaultIngressPath ¶ added in v0.1.7
func (o *MeshConfig) GetDefaultIngressPath() string
func (*MeshConfig) GetDefaultServicesPath ¶ added in v0.1.7
func (o *MeshConfig) GetDefaultServicesPath() string
func (*MeshConfig) IngressCodebasePath ¶
func (o *MeshConfig) IngressCodebasePath() string
func (*MeshConfig) IsControlPlane ¶
func (o *MeshConfig) IsControlPlane() bool
func (*MeshConfig) NamespacedIngressCodebasePath ¶ added in v0.1.7
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 ¶ added in v0.2.0
func (o *MeshConfig) RepoRootURL() string
func (*MeshConfig) ServiceLbImage ¶ added in v0.1.8
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 ¶ added in v0.1.7
type Store ¶
type Store struct {
MeshConfig *MeshConfigClient
}
Click to show internal directories.
Click to hide internal directories.