adapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClustersTableName  = "azure_pke_clusters"
	NodePoolsTableName = "azure_pke_node_pools"
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB, logger common.Logger) error

Migrate executes the table migrations for the provider.

Types

type ClusterStore

type ClusterStore struct {
	// contains filtered or unexported fields
}

func NewClusterStore

func NewClusterStore(db *gorm.DB, logger common.Logger) ClusterStore

func (ClusterStore) Create

func (s ClusterStore) Create(params pke.CreateParams) (pke.Cluster, error)

func (ClusterStore) CreateNodePool

func (s ClusterStore) CreateNodePool(clusterID uint, nodePool pke.NodePool) error

func (ClusterStore) Delete

func (s ClusterStore) Delete(clusterID uint) error

func (ClusterStore) DeleteNodePool

func (s ClusterStore) DeleteNodePool(clusterID uint, nodePoolName string) error

func (ClusterStore) GetByID

func (s ClusterStore) GetByID(clusterID uint) (pke.Cluster, error)

func (ClusterStore) GetConfigSecretID

func (s ClusterStore) GetConfigSecretID(clusterID uint) (string, error)

func (ClusterStore) SetActiveWorkflowID

func (s ClusterStore) SetActiveWorkflowID(clusterID uint, workflowID string) error

func (ClusterStore) SetConfigSecretID

func (s ClusterStore) SetConfigSecretID(clusterID uint, secretID string) error

func (ClusterStore) SetNodePoolSizes

func (s ClusterStore) SetNodePoolSizes(clusterID uint, nodePoolName string, min, max, desiredCount uint, autoscaling bool) error

func (ClusterStore) SetSSHSecretID

func (s ClusterStore) SetSSHSecretID(clusterID uint, secretID string) error

func (ClusterStore) SetStatus

func (s ClusterStore) SetStatus(clusterID uint, status, message string) error

func (ClusterStore) UpdateClusterAccessPoints

func (s ClusterStore) UpdateClusterAccessPoints(clusterID uint, accessPoints pke.AccessPoints) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL