common

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PythonTestNetwork = "Test"

	RemoteNetwork    = "Remote"
	DreamlandNetwork = "Dreamland"
)

TODO: Add dreamland connection TODO: Move to specs

View Source
const (
	FunctionTypeHttp           = "http"
	FunctionTypeHttps          = "https"
	FunctionTypeP2P            = "p2p"
	FunctionTypePubSub         = "pubsub"
	DefaultGeneratedDomainName = "generated"
	DefaultNewProjectBranch    = "main"

	SourceLibraryPrefix = "library"

	ConfigRepoPrefix  = "tb_%s"
	CodeRepoPrefix    = "tb_code_%s"
	WebsiteRepoPrefix = "tb_website_%s"
	LibraryRepoPrefix = "tb_library_%s"

	ConfigRepoDir  = "config"
	CodeRepoDir    = "code"
	WebsiteRepoDir = "websites"
	LibraryRepoDir = "libraries"

	SelectionInline = Source("inline")
	SelectionDot    = Source(".")

	// 0755 owner can read/write/execute, group/others can read/execute.
	DefaultDirPermission = 0755

	// 0644 owner can read/write, group/others can read only
	DefaultFilePermission = 0644
)
View Source
const Version = "Taubyte CLI version 0.1"

TODO Grab git release version

Variables

View Source
var (
	DefaultAuthUrl    = "https://auth.tau.sandbox.taubyte.com"
	DefaultPatrickUrl = "https://patrick.tau.sandbox.taubyte.com"
	DefaultSeerUrl    = "https://seer.tau.sandbox.taubyte.com"
)
View Source
var (
	FunctionTypes   = []string{FunctionTypeHttp, FunctionTypeHttps, FunctionTypeP2P, FunctionTypePubSub}
	HTTPMethodTypes = []string{"GET", "POST", "PUT", "DELETE", "CONNECT", "HEAD", "OPTIONS", "TRACE", "PATH"}
	SizeUnitTypes   = []string{"KB", "MB", "GB", "TB", "PB"}
	BucketTypes     = []string{"Object", "Streaming"}
)

Functions

func GetLanguages

func GetLanguages() (languages []string)

Types

type Source

type Source string

Source represents `inline`, `.` or a library name

func (Source) Inline

func (s Source) Inline() bool

func (Source) String

func (s Source) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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