common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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 (
	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