Documentation ¶
Index ¶
- Constants
- func GetApiServerLBRuleName() string
- func GetBackendAddressPoolName() string
- func GetFrontEndIPConfigName() string
- func GetInboundNATPoolName() string
- func GetInternalLoadBalancerName(clusterName string) string
- func GetLoadBalancerName(clusterName string) string
- func GetOutboundBackendAddressPoolName() string
- func GetPublicIPAddressName(clusterName string) string
- func GetRouteTableName(clusterName string) string
- func GetVMSSName(clusterName, nodePoolName string) string
- func IsNotFound(err error) bool
- type APIServerAccessPoint
- type APIServerAccessPoints
- type AccessPoint
- type AccessPoints
- type Cluster
- type ClusterStore
- type CreateParams
- type NodePool
- type ResourceGroup
- type Subnetwork
- type VirtualNetwork
Constants ¶
View Source
const PKEOnAzure = "pke-on-azure"
Variables ¶
This section is empty.
Functions ¶
func GetApiServerLBRuleName ¶
func GetApiServerLBRuleName() string
func GetBackendAddressPoolName ¶
func GetBackendAddressPoolName() string
func GetFrontEndIPConfigName ¶
func GetFrontEndIPConfigName() string
func GetInboundNATPoolName ¶
func GetInboundNATPoolName() string
func GetLoadBalancerName ¶
func GetOutboundBackendAddressPoolName ¶
func GetOutboundBackendAddressPoolName() string
func GetPublicIPAddressName ¶
func GetRouteTableName ¶
func GetVMSSName ¶
func IsNotFound ¶
IsNotFound returns true if the error is about a resource not being found
Types ¶
type APIServerAccessPoint ¶
type APIServerAccessPoint string
func (APIServerAccessPoint) GetName ¶
func (a APIServerAccessPoint) GetName() string
type APIServerAccessPoints ¶
type APIServerAccessPoints []APIServerAccessPoint
func (APIServerAccessPoints) Exists ¶
func (a APIServerAccessPoints) Exists(name string) bool
type AccessPoint ¶
type AccessPoints ¶
type AccessPoints []AccessPoint
func (AccessPoints) Exists ¶
func (a AccessPoints) Exists(name string) bool
func (AccessPoints) Get ¶
func (a AccessPoints) Get(name string) *AccessPoint
type Cluster ¶
type Cluster struct { clusterbase.ClusterBase Location string NodePools []NodePool ResourceGroup ResourceGroup VirtualNetwork VirtualNetwork Kubernetes intPKE.Kubernetes ActiveWorkflowID string HTTPProxy intPKE.HTTPProxy AccessPoints AccessPoints APIServerAccessPoints APIServerAccessPoints }
Cluster defines fields for PKE-on-Azure clusters
func (Cluster) HasActiveWorkflow ¶
type ClusterStore ¶
type ClusterStore interface { Create(params CreateParams) (Cluster, error) CreateNodePool(clusterID uint, nodePool NodePool) error Delete(clusterID uint) error DeleteNodePool(clusterID uint, nodePoolName string) error GetByID(clusterID uint) (Cluster, error) SetStatus(clusterID uint, status, message string) error SetActiveWorkflowID(clusterID uint, workflowID string) error SetConfigSecretID(clusterID uint, secretID string) error SetSSHSecretID(clusterID uint, sshSecretID string) error SetNodePoolSizes(clusterID uint, nodePoolName string, min, max, desiredCount uint, autoscaling bool) error UpdateClusterAccessPoints(clusterID uint, accessPoints AccessPoints) error }
ClusterStore defines behaviors of Cluster persistent storage
type CreateParams ¶
type CreateParams struct { Name string OrganizationID uint CreatedBy uint Location string SecretID string SSHSecretID string RBAC bool OIDC bool KubernetesVersion string ResourceGroupName string VirtualNetworkName string NodePools []NodePool HTTPProxy intPKE.HTTPProxy AccessPoints AccessPoints APIServerAccessPoints APIServerAccessPoints }
type ResourceGroup ¶
type ResourceGroup struct {
Name string
}
type Subnetwork ¶
type Subnetwork struct {
Name string
}
type VirtualNetwork ¶
Click to show internal directories.
Click to hide internal directories.