Documentation ¶
Index ¶
- Constants
- Variables
- func DatabasePV(namespace string, name string, target StorageTarget, cloudDiskName string, ...) (v1.PersistentVolume, error)
- func DatabasePVClaim(namespace string, volumeName string, claimName string, claimSize string) v1.PersistentVolumeClaim
- func TlsConfig(opts *DeployOptions) (*v1.Secret, error)
- type Configurator
- func BaseConfig(manifest Configurator, opts *DeployOptions) (Configurator, error)
- func DatabaseConfig(manifest Configurator, opts *DeployOptions, dbStorage StorageTarget, ...) (Configurator, error)
- func GoogleConfig(manifest Configurator, opts *DeployOptions, creds string, ...) (Configurator, error)
- func NewConfigurator() Configurator
- type DeployOptions
- type StorageTarget
Constants ¶
View Source
const ( Local StorageTarget = "LOCAL" Amazon = "S3" Google = "GCS" Azure = "AZURE" Minio = "MINIO" None = "NONE" )
Variables ¶
View Source
var (
Version = "0.1.0"
)
Functions ¶
func DatabasePV ¶
func DatabasePV(namespace string, name string, target StorageTarget, cloudDiskName string, NodePath string, volumeSize string) (v1.PersistentVolume, error)
database can be stored on local disk or cloud disk target for DB can be different than object storage target
func DatabasePVClaim ¶
Types ¶
type Configurator ¶
type Configurator interface { AddEntry(item interface{}) error ReadCacheBytes() []byte FlushToFile(path string) error }
func BaseConfig ¶
func BaseConfig(manifest Configurator, opts *DeployOptions) (Configurator, error)
func DatabaseConfig ¶
func DatabaseConfig(manifest Configurator, opts *DeployOptions, dbStorage StorageTarget, cloudDiskName string, hostpath string, allocSize string) (Configurator, error)
func GoogleConfig ¶
func GoogleConfig(manifest Configurator, opts *DeployOptions, creds string, objectStorageBucket string, dbStorage StorageTarget, dbCloudDiskName string, dbHostPath string, dbMountPath string, dbDiskSize string) (Configurator, error)
func NewConfigurator ¶
func NewConfigurator() Configurator
type DeployOptions ¶
type DeployOptions struct { Namespace string PublicInterface string ServerIP string ServerPort int32 ServerNodePort int32 StorageTarget hfConfig.StorageTarget NoRBAC bool NoAuth bool // incase bolt uses local host volume path DbType hfConfig.DbTarget DbFileMountPath string DbBucket string DbUsePVClaim bool DockerRegistry string ImagePullSecret string WorkerImage string NodeMemLimit string NodeCpuLimit string LogLevel string Version string TLSServerCert string TLSServerKey string APIServerConfig *hfConfig.Config }
func DefaultDeployOpts ¶
func DefaultDeployOpts() *DeployOptions
type StorageTarget ¶
type StorageTarget string
Click to show internal directories.
Click to hide internal directories.