Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AMD64 bool = runtime.GOARCH == "amd64"
AMD64 boolean if running on amd64 architecture
var ARM64 bool = runtime.GOARCH == "arm64"
ARM64 boolean if running on arm64 architecture
var DragonchainHelmVersion = "1.0.8"
DragonchainHelmVersion helm version of dragonchain to use
var KubernetesVersion = "v1.15.10"
KubernetesVersion the kubernetes version to use with the dragonchain's minikube cluster
var Linux bool = runtime.GOOS == "linux"
Linux boolean if running on windows
var LinuxHelmArm64Link = "https://get.helm.sh/helm-v3.1.0-linux-arm64.tar.gz"
LinuxHelmArm64Link direct link for linux arm64 helm package
var LinuxHelmLink = "https://get.helm.sh/helm-v3.1.0-linux-amd64.tar.gz"
LinuxHelmLink direct link for linux helm package
var LinuxKubectlArm64Link = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/linux/arm64/kubectl"
LinuxKubectlArm64Link directl link for linux arm64 kubectl executable
var LinuxKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/linux/amd64/kubectl"
LinuxKubectlLink direct link for linux kubectl executable
var LinuxMinikubeArm64Link = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-linux-arm64"
LinuxMinikubeArm64Link direct link for minikube aarch64 executable
var LinuxMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-linux-amd64"
LinuxMinikubeLink direct link for linux minikube executable
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
var Macos bool = runtime.GOOS == "darwin"
Macos boolean if running on windows
var MacosHelmLink = "https://get.helm.sh/helm-v3.1.0-darwin-amd64.tar.gz"
MacosHelmLink direct link for macos helm package
var MacosKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/darwin/amd64/kubectl"
MacosKubectlLink direct link for macos kubectl executable
var MacosMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-darwin-amd64"
MacosMinikubeLink direct link for macos minikube executable
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
var MinikubeContext = "dragonchain"
MinikubeContext the name of the minikube profile to use, which is also the kubernetes context and VM name
var MinikubeCpus = 2
MinikubeCpus number of cpus to give to the minikube VM (only applicable when creating new minikube cluster)
var MinikubeVMMemory = "4000mb"
MinikubeVMMemory amount of memory to give to the minikube VM (only applicable when creating new minikube cluster)
var OpenfaasHelmVersion = "5.5.4"
OpenfaasHelmVersion helm version of openfaas (faas-netes) to use
var RegistryHelmVersion = "1.9.1"
RegistryHelmVersion helm version of docker container registry to use
var RegistryIP = "10.98.76.54"
RegistryIP the clusterip to use for the docker registry deployment
var RegistryPort = 5000
RegistryPort the port to use for the docker registry deployment
var SetDefaultCredentials = true
SetDefaultCredentials indicates whether or not to set the default chain whe configuring the credentials ini file
var Version string
Version is the version of this tool (changes for each release, set when compiling with the Makefile)
var Windows bool = runtime.GOOS == "windows"
Windows boolean if running on windows
var WindowsHelmLink = "https://get.helm.sh/helm-v3.1.0-windows-amd64.zip"
WindowsHelmLink direct link for windows helm package
var WindowsKubectlLink = "https://storage.googleapis.com/kubernetes-release/release/v1.17.3/bin/windows/amd64/kubectl.exe"
WindowsKubectlLink direct link for windows kubectl executable
var WindowsMinikubeLink = "https://storage.googleapis.com/minikube/releases/v1.7.2/minikube-windows-amd64.exe"
WindowsMinikubeLink direct link for windows minikube executable
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