conf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(cpRepoPath string) error

Types

type API

type API struct {
	Port          int
	MultiAddress  string
	RedisUrl      string
	RedisPassword string
	Domain        string
	NodeName      string
}

type ComputeNode

type ComputeNode struct {
	API      API
	LOG      LOG
	LAG      LAG
	MCS      MCS
	Registry Registry
}

ComputeNode is a compute node config

func GetConfig

func GetConfig() *ComputeNode

type LAG

type LAG struct {
	ServerUrl   string
	AccessToken string
}

type LOG added in v0.2.0

type LOG struct {
	CrtFile string
	KeyFile string
}

type MCS

type MCS struct {
	ApiKey        string
	AccessToken   string
	BucketName    string
	Network       string
	FileCachePath string
}

type Registry

type Registry struct {
	ServerAddress string
	UserName      string
	Password      string
}

Jump to

Keyboard shortcuts

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