configuration

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AMD64 bool = runtime.GOARCH == "amd64"

AMD64 boolean if running on amd64 architecture

View Source
var ARM64 bool = runtime.GOARCH == "arm64"

ARM64 boolean if running on arm64 architecture

View Source
var DragonchainHelmVersion = "1.0.8"

DragonchainHelmVersion helm version of dragonchain to use

View Source
var KubernetesVersion = "v1.15.10"

KubernetesVersion the kubernetes version to use with the dragonchain's minikube cluster

View Source
var Linux bool = runtime.GOOS == "linux"

Linux boolean if running on windows

View Source
var LinuxHelmArm64Link = "https://get.helm.sh/helm-v3.1.0-linux-arm64.tar.gz"

LinuxHelmArm64Link direct link for linux arm64 helm package

View Source
var LinuxHelmLink = "https://get.helm.sh/helm-v3.1.0-linux-amd64.tar.gz"

LinuxHelmLink direct link for linux helm package

View Source
var LinuxKubectlArm64Link = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/linux/arm64/kubectl"

LinuxKubectlArm64Link directl link for linux arm64 kubectl executable

View Source
var LinuxKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/linux/amd64/kubectl"

LinuxKubectlLink direct link for linux kubectl executable

View Source
var LinuxMinikubeArm64Link = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-linux-arm64"

LinuxMinikubeArm64Link direct link for minikube aarch64 executable

View Source
var LinuxMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-linux-amd64"

LinuxMinikubeLink direct link for linux minikube executable

View Source
var LinuxVirtualboxLink = "https://download.virtualbox.org/virtualbox/6.1.2/VirtualBox-6.1.2-135662-Linux_amd64.run"

LinuxVirtualboxLink direct link for linux virtualbox installer download

View Source
var Macos bool = runtime.GOOS == "darwin"

Macos boolean if running on windows

View Source
var MacosHelmLink = "https://get.helm.sh/helm-v3.1.0-darwin-amd64.tar.gz"

MacosHelmLink direct link for macos helm package

View Source
var MacosKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/darwin/amd64/kubectl"

MacosKubectlLink direct link for macos kubectl executable

View Source
var MacosMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-darwin-amd64"

MacosMinikubeLink direct link for macos minikube executable

View Source
var MacosVirtualboxLink = "https://download.virtualbox.org/virtualbox/6.1.2/VirtualBox-6.1.2-135662-OSX.dmg"

MacosVirtualboxLink direct link for macos virtualbox installer download

View Source
var MinikubeContext = "dragonchain"

MinikubeContext the name of the minikube profile to use, which is also the kubernetes context and VM name

View Source
var MinikubeCpus = 2

MinikubeCpus number of cpus to give to the minikube VM (only applicable when creating new minikube cluster)

View Source
var MinikubeVMMemory = "4000mb"

MinikubeVMMemory amount of memory to give to the minikube VM (only applicable when creating new minikube cluster)

View Source
var OpenfaasHelmVersion = "5.5.4"

OpenfaasHelmVersion helm version of openfaas (faas-netes) to use

View Source
var RegistryHelmVersion = "1.9.1"

RegistryHelmVersion helm version of docker container registry to use

View Source
var RegistryIP = "10.98.76.54"

RegistryIP the clusterip to use for the docker registry deployment

View Source
var RegistryPort = 5000

RegistryPort the port to use for the docker registry deployment

View Source
var SetDefaultCredentials = true

SetDefaultCredentials indicates whether or not to set the default chain whe configuring the credentials ini file

View Source
var Version string

Version is the version of this tool (changes for each release, set when compiling with the Makefile)

View Source
var Windows bool = runtime.GOOS == "windows"

Windows boolean if running on windows

View Source
var WindowsHelmLink = "https://get.helm.sh/helm-v3.1.0-windows-amd64.zip"

WindowsHelmLink direct link for windows helm package

View Source
var WindowsKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/windows/amd64/kubectl.exe"

WindowsKubectlLink direct link for windows kubectl executable

View Source
var WindowsMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-windows-amd64.exe"

WindowsMinikubeLink direct link for windows minikube executable

View Source
var WindowsVirtualboxLink = "https://download.virtualbox.org/virtualbox/6.1.2/VirtualBox-6.1.2-135663-Win.exe"

WindowsVirtualboxLink direct link for windows virtualbox installer download

Functions

func InstallDragonchainCredentials

func InstallDragonchainCredentials(config *Configuration, pubID string) error

InstallDragonchainCredentials installs the credentials for this dragonchain to the local config to be used by sdk/cli tool, etc

Types

type Configuration

type Configuration struct {
	Level             int    `json:"Level"`
	Name              string `json:"Name"`
	EndpointURL       string `json:"EndpointURL"`
	Port              int    `json:"Port"`
	InternalID        string `json:"InternalID"`
	RegistrationToken string `json:"RegistrationToken"`
	UseVM             bool   `json:"UseVM"`
	PrivateKey        string
	HmacID            string
	HmacKey           string
}

Configuration is all of the data needed to configure a new chain

func PromptForUserConfiguration

func PromptForUserConfiguration() (*Configuration, error)

PromptForUserConfiguration get user input for all the necessary configurable variables of a Dragonchain

Jump to

Keyboard shortcuts

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