cmd

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const SelectorHelp = "" /* 164-byte string literal not displayed */

SelectorHelp is a general note about how selectors supposed to be used.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "storj-up",
	Short: "A golang wrapper for creating customized Storj environment with many components",
	Long: `storj-up can be used to create containerized or standalone runtime environment,
leverages existing binaries, or even references code to be built in docker and create images.

For example:

storj-up build remote gerrit 5826`,
}

RootCmd represents the base command when called without any subcommands.

Functions

func ChangeCompose

func ChangeCompose(st recipe.Stack, rt runtime.Runtime, selectors []string, do func(composeService *types.ServiceConfig) error) error

ChangeCompose applies modification to compose based runtime services. Used mainly in legacy commands.

func Execute

func Execute()

Execute is the execution of the top level storj-up command.

func ExecuteStorjUP

func ExecuteStorjUP(exec func(stack recipe.Stack, rt runtime.Runtime, args []string) error) func(cmd *cobra.Command, args []string) error

ExecuteStorjUP can execute any operation with loaded stack/runtime and write back the results.

func FromDir

func FromDir(dir string) (runtime.Runtime, error)

FromDir creates the right runtime based on available file names in the directory.

Types

type Credentials added in v1.2.2

type Credentials struct {
	StorjUser     string `json:"email"`
	StorjPassword string `json:"password"`

	ProjectID        string `json:"ProjectID"`
	Cookie           string `json:"Cookie"`
	ApiKey           string `json:"ApiKey"`
	EncryptionSecret string `json:"EncryptionSecret"`
	Grant            string `json:"Grant"`

	AccessKey string `json:"AccessKey,omitempty"`
	SecretKey string `json:"SecretKey,omitempty"`
	Endpoint  string `json:"Endpoint,omitempty"`
}

Credentials is the structure of the credentials file.

type EncryptionKey added in v1.2.2

type EncryptionKey [16]byte

EncryptionKey is an encryption key that an access/secret are encrypted with.

type SecretKey added in v1.2.2

type SecretKey [32]byte

SecretKey is the secret key used to sign requests.

Directories

Path Synopsis
Package container package contains commands which are valid only for local container based environment.
Package container package contains commands which are valid only for local container based environment.

Jump to

Keyboard shortcuts

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