cmd

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAuthProvider = "auth0"
	DefaultAuthServer   = "auth.rockset.com"
	DefaultClientID     = "0dJNiGWClbLjg7AdtXtAyPCeE0jKOFet"
)
View Source
const (
	ClusterFLag  = "cluster"
	ContextFLag  = "context"
	DebugFlag    = "debug"
	FormatFlag   = "format"
	HeaderFlag   = "header"
	SelectorFlag = "selector"
	WideFlag     = "wide"
)

global flags

View Source
const (
	BucketFlag           = "bucket"
	CompressionFlag      = "compression"
	CollectionFlag       = "collection"
	DatasetFlag          = "dataset"
	DescriptionFlag      = "description"
	FileFlag             = "file"
	ForceFlag            = "force"
	IngestTransformation = "ingest-transformation"
	IntegrationFlag      = "integration"
	PatternFlag          = "pattern"
	RegionFlag           = "region"
	RetentionFlag        = "retention"
	RoleARNFlag          = "role-arn"
	SizeFlag             = "size"
	SQLFlag              = "sql"
	TagFlag              = "tag"
	TagsFlag             = "tags"
	ValidateFlag         = "validate"
	VersionFlag          = "version"
	VersionsFlag         = "versions"
	WaitFlag             = "wait"
	WorkspaceFlag        = "workspace"
	WorkspaceShortFlag   = "W"
)

command specific flags

View Source
const (
	AllWorkspaces    = "all"
	DefaultFormat    = "table"
	DefaultWorkspace = "commons"
)
View Source
const VersionURL = "http://rockset.sh/install/version.json"

Variables

View Source
var VINotFoundErr = errors.New("virtual instance not found")
View Source
var (
	Version = "development"
)

Functions

func FormatFromCommand

func FormatFromCommand(cmd *cobra.Command) format.Format

func Map added in v0.0.14

func Map[IN, OUT any](array []IN, fn func(IN) OUT) []OUT

func NewCreateAliasCmd added in v0.0.14

func NewCreateAliasCmd() *cobra.Command

func NewDeleteAliasCmd added in v0.0.14

func NewDeleteAliasCmd() *cobra.Command

func NewExecuteQueryLambdaCmd added in v0.0.14

func NewExecuteQueryLambdaCmd() *cobra.Command

func NewGetAliasCmd added in v0.0.14

func NewGetAliasCmd() *cobra.Command

func NewGetWorkspaceCmd added in v0.0.14

func NewGetWorkspaceCmd() *cobra.Command

func NewListAliasesCmd added in v0.0.14

func NewListAliasesCmd() *cobra.Command

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

func NewUpdateAliasCmd added in v0.0.14

func NewUpdateAliasCmd() *cobra.Command

func VersionCheck added in v0.0.2

func VersionCheck(ctx context.Context, ch chan string)

Types

type DocumentAdder

type DocumentAdder interface {
	AddDocuments(ctx context.Context, workspace, collection string,
		docs []interface{}) ([]openapi.DocumentStatus, error)
}

type StreamConfig

type StreamConfig struct {
	Workspace  string
	Collection string
	BatchSize  uint64
}

type Streamer

type Streamer struct {
	StreamConfig
	// contains filtered or unexported fields
}

func NewStreamer

func NewStreamer(s DocumentAdder, cfg StreamConfig) Streamer

func (*Streamer) Stream

func (s *Streamer) Stream(ctx context.Context, in io.Reader) (uint64, error)

type Versions added in v0.0.2

type Versions struct {
	Stable string `json:"stable"`
	Beta   string `json:"beta"`
}

Jump to

Keyboard shortcuts

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