froach

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 32 Imported by: 0

README

froach

Cockroach runner for fleet system

  • Manages a CA and peers using the fleet system (CA private key is shared for now, since that's the same as using the cryptseed).
  • will create node CA and root user certificate
  • certificates stored in ~/.config/froach and data in ~/.cache/froach/db
  • Able to download latest version of cockroachdb in ~/.cache/froach (will use azusa if found)

It will launch a daemon listening on port 36257 and connect the various daemons together.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BasePath  = initialBasePath()
	CachePath = initialCachePath()
)

Functions

func Exe

func Exe() (string, error)

Exe returns the path to cockroach latest version

func Monitor

func Monitor()

Monitor will check if cockroachdb is launched every 1 min and launch it if needed

Types

type CockroachVersion

type CockroachVersion struct {
	Filename string
	// contains filtered or unexported fields
}

func GetLatestVersion

func GetLatestVersion() (*CockroachVersion, error)

GetLatestVersion gathers information on the latest cockroachdb version from cockroach servers and returns a CockroachVersion.

func GetVersion

func GetVersion(vers string) (*CockroachVersion, error)

GetVersion gathers information on the specified cockroachdb version and returns a CockroachVersion.

func (*CockroachVersion) Dirname

func (v *CockroachVersion) Dirname() string

Dirname returns the directory name expected for the file. Typically cockroachdb archive is a directory with the following files:

cockroach lib/libgeos.so lib/libgeos_c.so LICENSE.txt THIRD-PARTY-NOTICES.txt

func (*CockroachVersion) DownloadTo

func (v *CockroachVersion) DownloadTo(fn string) error

DownloadTo downloads the version of cockroachdb to a file while performing a checksum

func (*CockroachVersion) ExtractTo

func (v *CockroachVersion) ExtractTo(dirname string) error

ExtractTo downloads the version of cockroachdb to a directory while performing a checksum

Typically a directory named v.Dirname() will be created there

Jump to

Keyboard shortcuts

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