cmd

package
v0.0.167 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string = "dev"
	Commit  string = "dev"
	Date    string
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ShowNewProjectImport added in v0.0.56

func ShowNewProjectImport(ctx context.Context, logger logger.Logger, cmd *cobra.Command, apiUrl string, apikey string, projectId string, project *project.Project, dir string, isImport bool)

Types

type APIKeyList added in v0.0.90

type APIKeyList []apikey.APIKey

func (APIKeyList) SortedIterator added in v0.0.90

func (list APIKeyList) SortedIterator() func(yield func(key string, value apikey.APIKey) bool)

type Agent added in v0.0.20

type Agent struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

type InitProjectArgs

type InitProjectArgs struct {
	BaseURL           string
	Dir               string
	Token             string
	OrgId             string
	Name              string
	Description       string
	EnableWebhookAuth bool
	AuthType          string
	Provider          *templates.TemplateRules
	Agents            []project.AgentConfig
	Framework         string
}

type Log added in v0.0.140

type Log struct {
	ID        string    `json:"id"`
	Body      string    `json:"body"`
	Link      string    `json:"link"`
	Severity  string    `json:"severity"`
	Timestamp time.Time `json:"timestamp"`
}

type LogsResponse added in v0.0.140

type LogsResponse struct {
	Success bool  `json:"success"`
	Data    []Log `json:"data"`
}

type Resources added in v0.0.26

type Resources struct {
	Memory int64 `json:"memory,omitempty"`
	CPU    int64 `json:"cpu,omitempty"`
	Disk   int64 `json:"disk,omitempty"`
}

Jump to

Keyboard shortcuts

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