syncer

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package syncer provides the logic used by command line tool cloudstack-csi-sc-syncer.

It provides functions to synchronize CloudStack disk offerings to Kubernetes storage classes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Agent            string
	CloudStackConfig string
	KubeConfig       string
	Label            string
	NamePrefix       string
	Delete           bool
	VolumeExpansion  bool
}

Config holds the syncer tool configuration.

type Syncer

type Syncer interface {
	Run(context.Context) error
}

Syncer has a function Run which synchronizes CloudStack disk offerings to Kubernetes Storage classes.

func New

func New(config Config) (Syncer, error)

New creates a new Syncer instance.

Jump to

Keyboard shortcuts

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