Documentation ¶
Index ¶
- Constants
- func DestroyGatewayClient()
- func Error(err error) string
- func InitGatewayClient(cmd *cobra.Command)
- func IsDNS1123Subdomain(value string) bool
- func IsFormatJSON(cmd *cobra.Command) bool
- func LoadConfig(filename string, config interface{}) error
- func NewClusterCommand() *cobra.Command
- func NewConnectorCommand() *cobra.Command
- func NewEventCommand() *cobra.Command
- func NewEventbusCommand() *cobra.Command
- func NewNamespaceCommand() *cobra.Command
- func NewPermissionCommand() *cobra.Command
- func NewSubscriptionCommand() *cobra.Command
- func NewTokenCommand() *cobra.Command
- func NewUserCommand() *cobra.Command
- type ClusterCreate
- type ClusterDelete
- type ClusterInfo
- type ClusterOKBody
- type ClusterPatch
- type ClusterSpec
- type ConnectorCreate
- type ConnectorDelete
- type ConnectorInfo
- type ConnectorOKBody
- type ConnectorSpec
- type Controller
- type ControllerPorts
- type Etcd
- type EtcdPorts
- type Gateway
- type GatewayNodePorts
- type GatewayPorts
- type GlobalFlags
- type ListConnectorOKBody
- type QueryOutput
- type Resources
- type Store
- type Timer
- type TimingWheel
- type Trigger
Constants ¶
View Source
const ( DefaultInitialVersion = "v0.9.0" DefaultImagePullPolicy = "Always" DefaultResourceLimitsCpu = "500m" DefaultResourceLimitsMem = "1Gi" )
View Source
const ( AWSCredentialType = "aws" GCloudCredentialType = "gcloud" )
View Source
const ( RespCodeOK int32 = 200 DefaultOperatorPort = 30009 HttpPrefix = "http://" BaseUrl = "/api/v1" )
View Source
const ( CoreComponentImagePullPolicyAnnotation = "core.vanus.ai/image-pull-policy" // Etcd CoreComponentEtcdPortClientAnnotation = "core.vanus.ai/etcd-port-client" CoreComponentEtcdPortPeerAnnotation = "core.vanus.ai/etcd-port-peer" CoreComponentEtcdReplicasAnnotation = "core.vanus.ai/etcd-replicas" CoreComponentEtcdStorageSizeAnnotation = "core.vanus.ai/etcd-storage-size" CoreComponentEtcdStorageClassAnnotation = "core.vanus.ai/etcd-storage-class" CoreComponentEtcdResourceLimitsCpuAnnotation = "core.vanus.ai/etcd-resource-limits-cpu" CoreComponentEtcdResourceLimitsMemAnnotation = "core.vanus.ai/etcd-resource-limits-mem" // Controller CoreComponentControllerSvcPortAnnotation = "core.vanus.ai/controller-service-port" CoreComponentControllerReplicasAnnotation = "core.vanus.ai/controller-replicas" CoreComponentControllerSegmentCapacityAnnotation = "core.vanus.ai/controller-segment-capacity" CoreComponentControllerResourceLimitsCpuAnnotation = "core.vanus.ai/controller-resource-limits-cpu" CoreComponentControllerResourceLimitsMemAnnotation = "core.vanus.ai/controller-resource-limits-mem" // Root Controller CoreComponentRootControllerSvcPortAnnotation = "core.vanus.ai/root-controller-service-port" // Store CoreComponentStoreReplicasAnnotation = "core.vanus.ai/store-replicas" CoreComponentStoreStorageSizeAnnotation = "core.vanus.ai/store-storage-size" CoreComponentStoreStorageClassAnnotation = "core.vanus.ai/store-storage-class" CoreComponentStoreResourceLimitsCpuAnnotation = "core.vanus.ai/store-resource-limits-cpu" CoreComponentStoreResourceLimitsMemAnnotation = "core.vanus.ai/store-resource-limits-mem" // Gateway CoreComponentGatewayPortProxyAnnotation = "core.vanus.ai/gateway-port-proxy" CoreComponentGatewayPortCloudEventsAnnotation = "core.vanus.ai/gateway-port-cloudevents" CoreComponentGatewayNodePortProxyAnnotation = "core.vanus.ai/gateway-nodeport-proxy" CoreComponentGatewayNodePortCloudEventsAnnotation = "core.vanus.ai/gateway-nodeport-cloudevents" CoreComponentGatewayReplicasAnnotation = "core.vanus.ai/gateway-replicas" CoreComponentGatewayResourceLimitsCpuAnnotation = "core.vanus.ai/gateway-resource-limits-cpu" CoreComponentGatewayResourceLimitsMemAnnotation = "core.vanus.ai/gateway-resource-limits-mem" // Trigger CoreComponentTriggerReplicasAnnotation = "core.vanus.ai/trigger-replicas" CoreComponentTriggerResourceLimitsCpuAnnotation = "core.vanus.ai/trigger-resource-limits-cpu" CoreComponentTriggerResourceLimitsMemAnnotation = "core.vanus.ai/trigger-resource-limits-mem" // Timer CoreComponentTimerReplicasAnnotation = "core.vanus.ai/timer-replicas" CoreComponentTimerTimingWheelTickAnnotation = "core.vanus.ai/timer-timingwheel-tick" CoreComponentTimerTimingWheelSizeAnnotation = "core.vanus.ai/timer-timingwheel-size" CoreComponentTimerTimingWheelLayersAnnotation = "core.vanus.ai/timer-timingwheel-layers" CoreComponentTimerResourceLimitsCpuAnnotation = "core.vanus.ai/timer-resource-limits-cpu" CoreComponentTimerResourceLimitsMemAnnotation = "core.vanus.ai/timer-resource-limits-mem" )
Annotations supported by Core
View Source
const ( ConnectorDeploymentReplicasAnnotation = "connector.vanus.ai/deployment-replicas" ConnectorServiceTypeAnnotation = "connector.vanus.ai/service-type" ConnectorServicePortAnnotation = "connector.vanus.ai/service-port" ConnectorNetworkHostDomainAnnotation = "connector.vanus.ai/network-host-domain" )
Annotations supported by Connector
View Source
const ( // DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123) DNS1123SubdomainMaxLength int = 253 )
View Source
const (
FormatJSON = "json"
)
Variables ¶
This section is empty.
Functions ¶
func DestroyGatewayClient ¶
func DestroyGatewayClient()
func InitGatewayClient ¶
func IsDNS1123Subdomain ¶
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
func IsFormatJSON ¶
func LoadConfig ¶
func NewClusterCommand ¶
func NewConnectorCommand ¶
func NewEventCommand ¶
func NewEventbusCommand ¶
func NewNamespaceCommand ¶
func NewPermissionCommand ¶
func NewSubscriptionCommand ¶
func NewTokenCommand ¶
func NewUserCommand ¶
Types ¶
type ClusterCreate ¶
type ClusterDelete ¶
type ClusterDelete struct {
Force *bool `json:"force,omitempty"`
}
type ClusterInfo ¶
type ClusterOKBody ¶
type ClusterOKBody struct { Code *int32 `json:"code"` Data *ClusterInfo `json:"data"` Message *string `json:"message"` }
type ClusterPatch ¶
type ClusterSpec ¶
type ClusterSpec struct { Version *string `yaml:"version"` ImagePullPolicy *string `yaml:"image_pull_policy"` Etcd *Etcd `yaml:"etcd"` Controller *Controller `yaml:"controller"` Store *Store `yaml:"store"` Gateway *Gateway `yaml:"gateway"` Trigger *Trigger `yaml:"trigger"` Timer *Timer `yaml:"timer"` }
type ConnectorCreate ¶
type ConnectorDelete ¶
type ConnectorDelete struct {
Force *bool `json:"force,omitempty"`
}
type ConnectorInfo ¶
type ConnectorOKBody ¶
type ConnectorOKBody struct { Code *int32 `json:"code"` Data *ConnectorInfo `json:"data"` Message *string `json:"message"` }
type ConnectorSpec ¶
type Controller ¶
type Controller struct { Ports *ControllerPorts `yaml:"ports"` Replicas *int32 `yaml:"replicas"` SegmentCapacity *string `yaml:"segment_capacity"` Resources *Resources `yaml:"resources"` }
type ControllerPorts ¶
type Gateway ¶
type Gateway struct { Ports *GatewayPorts `yaml:"ports"` NodePorts *GatewayNodePorts `yaml:"nodeports"` Replicas *int32 `yaml:"replicas"` Resources *Resources `yaml:"resources"` }
type GatewayNodePorts ¶
type GatewayPorts ¶
type GlobalFlags ¶
type ListConnectorOKBody ¶
type ListConnectorOKBody struct { Code *int32 `json:"code"` Data []*ConnectorInfo `json:"data"` Message *string `json:"message"` }
type QueryOutput ¶
type Timer ¶
type Timer struct { Replicas *int32 `yaml:"replicas"` TimingWheel *TimingWheel `yaml:"timingwheel"` Resources *Resources `yaml:"resources"` }
type TimingWheel ¶
Click to show internal directories.
Click to hide internal directories.