cmd

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 62 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxExtensionSizeBytes = 50 * 1024 * 1024 // 50MB
)

Variables

This section is empty.

Functions

func Execute

func Execute(m Metadata)

Execute executes the root command.

func PrintTableNoPad

func PrintTableNoPad(data pterm.TableData, hasHeader bool)

PrintTableNoPad is a wrapper around pkg/table.PrintTableNoPad for backwards compatibility

Types

type APIKeysCmd added in v0.19.3

type APIKeysCmd struct {
	// contains filtered or unexported fields
}

func (APIKeysCmd) Create added in v0.19.3

func (APIKeysCmd) Delete added in v0.19.3

func (APIKeysCmd) Get added in v0.19.3

func (APIKeysCmd) List added in v0.19.3

func (APIKeysCmd) Rotate added in v0.25.0

Rotate issues a replacement API key. The rotated key keeps working until its grace period elapses, so this is disruptive but not immediately breaking -- it still prompts, since the old key does eventually stop working.

func (APIKeysCmd) Update added in v0.19.3

type APIKeysCreateInput added in v0.19.3

type APIKeysCreateInput struct {
	Name         string
	DaysToExpire Int64Flag
	ExpiresAt    string
	ProjectID    string
	Policy       string
	Output       string
}

type APIKeysDeleteInput added in v0.19.3

type APIKeysDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type APIKeysGetInput added in v0.19.3

type APIKeysGetInput struct {
	ID             string
	IncludeDeleted bool
	Output         string
}

type APIKeysListInput added in v0.19.3

type APIKeysListInput struct {
	Limit          int
	Offset         int
	Name           string
	Query          string
	Status         string
	IncludeDeleted bool
	SortBy         string
	SortDirection  string
	Output         string
}

type APIKeysRotateInput added in v0.25.0

type APIKeysRotateInput struct {
	ID           string
	DaysToExpire Int64Flag
	ExpireInDays Int64Flag
	SkipConfirm  bool
	Output       string
}

type APIKeysUpdateInput added in v0.19.3

type APIKeysUpdateInput struct {
	ID     string
	Name   string
	Output string
}

type AuditLogsCmd added in v0.21.0

type AuditLogsCmd struct {
	// contains filtered or unexported fields
}

func (AuditLogsCmd) Download added in v0.22.0

func (AuditLogsCmd) Search added in v0.21.0

type AuditLogsDownloadInput added in v0.22.0

type AuditLogsDownloadInput struct {
	Start         string
	End           string
	Search        string
	Method        string
	ExcludeMethod string
	IncludeGet    bool
	Service       string
	AuthStrategy  string
	UserIDs       []string
	Format        string
	To            string
	Force         bool
}

type AuditLogsExportCmd added in v0.27.1

type AuditLogsExportCmd struct {
	// contains filtered or unexported fields
}

func (AuditLogsExportCmd) Create added in v0.27.1

func (AuditLogsExportCmd) Delete added in v0.27.1

func (AuditLogsExportCmd) Get added in v0.27.1

func (AuditLogsExportCmd) List added in v0.27.1

func (AuditLogsExportCmd) SetStatus added in v0.27.1

func (AuditLogsExportCmd) Test added in v0.27.1

func (AuditLogsExportCmd) Update added in v0.27.1

type AuditLogsExportCreateInput added in v0.27.1

type AuditLogsExportCreateInput struct {
	Region   string
	Bucket   string
	Prefix   string
	RoleARN  string
	KMSKeyID string
	Output   string
}

type AuditLogsExportDeleteInput added in v0.27.1

type AuditLogsExportDeleteInput struct {
	ID string
}

type AuditLogsExportGetInput added in v0.27.1

type AuditLogsExportGetInput struct {
	ID     string
	Output string
}

type AuditLogsExportListInput added in v0.27.1

type AuditLogsExportListInput struct {
	Limit  int
	Offset int
	Output string
}

type AuditLogsExportStatusInput added in v0.27.1

type AuditLogsExportStatusInput struct {
	ID     string
	Status string
	Output string
}

type AuditLogsExportTestInput added in v0.27.1

type AuditLogsExportTestInput struct {
	ID     string
	Output string
}

type AuditLogsExportUpdateInput added in v0.27.1

type AuditLogsExportUpdateInput struct {
	ID          string
	Region      *string
	Bucket      *string
	Prefix      *string
	RoleARN     *string
	KMSKeyID    *string
	ClearKMSKey bool
	Output      string
}

type AuditLogsSearchInput added in v0.21.0

type AuditLogsSearchInput struct {
	Start         string
	End           string
	Search        string
	Method        string
	ExcludeMethod string
	IncludeGet    bool
	Service       string
	AuthStrategy  string
	UserIDs       []string
	Limit         int
	Output        string
}

type AuditLogsService added in v0.21.0

type AuditLogsService interface {
	ListAutoPaging(ctx context.Context, query kernel.AuditLogListParams, opts ...option.RequestOption) *pagination.PageTokenPaginationAutoPager[kernel.AuditLogEntry]
	ExportChunk(ctx context.Context, query kernel.AuditLogExportChunkParams, opts ...option.RequestOption) (*http.Response, error)
}

type AuthConnectionCmd added in v0.14.8

type AuthConnectionCmd struct {
	// contains filtered or unexported fields
}

AuthConnectionCmd handles auth connection operations independent of cobra.

func (AuthConnectionCmd) Create added in v0.14.8

func (AuthConnectionCmd) Delete added in v0.14.8

func (AuthConnectionCmd) Follow added in v0.14.8

func (AuthConnectionCmd) Get added in v0.14.8

func (AuthConnectionCmd) List added in v0.14.8

func (AuthConnectionCmd) Login added in v0.14.8

func (AuthConnectionCmd) Submit added in v0.14.8

func (AuthConnectionCmd) Timeline added in v0.25.0

func (AuthConnectionCmd) Update added in v0.15.7

type AuthConnectionCreateInput added in v0.14.8

type AuthConnectionCreateInput struct {
	Domain              string
	ProfileName         string
	LoginURL            string
	AllowedDomains      []string
	CredentialName      string
	CredentialProvider  string
	CredentialPath      string
	CredentialAuto      bool
	ProxyID             string
	ProxyName           string
	ProxyMode           string
	Region              string
	Stealth             BoolFlag
	SaveCredentials     bool
	NoSaveCredentials   bool
	HealthCheckInterval int
	NoHealthChecks      bool
	NoAutoReauth        bool
	Hitl                BoolFlag
	RecordSession       BoolFlag
	Telemetry           string
	TelemetryCdpExclude string
	TelemetryExport     string
	TelemetryStorage    string
	Output              string
}

type AuthConnectionDeleteInput added in v0.14.8

type AuthConnectionDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type AuthConnectionFollowInput added in v0.14.8

type AuthConnectionFollowInput struct {
	ID     string
	Output string
}

type AuthConnectionGetInput added in v0.14.8

type AuthConnectionGetInput struct {
	ID     string
	Output string
}

type AuthConnectionListInput added in v0.14.8

type AuthConnectionListInput struct {
	Domain      string
	ProfileName string
	Query       string
	Limit       int
	Offset      int
	Output      string
}

type AuthConnectionLoginInput added in v0.14.8

type AuthConnectionLoginInput struct {
	ID                  string
	ProxyID             string
	ProxyName           string
	ProxyMode           string
	Region              string
	Stealth             BoolFlag
	RecordSession       BoolFlag
	SkillMode           string
	Telemetry           string
	TelemetryCdpExclude string
	TelemetryExport     string
	TelemetryStorage    string
	Output              string
}

type AuthConnectionService added in v0.14.8

AuthConnectionService defines the subset of the Kernel SDK auth connection client that we use.

type AuthConnectionSubmitInput added in v0.14.8

type AuthConnectionSubmitInput struct {
	ID string
	// FieldValues holds legacy --field name=value pairs, submitted as `fields`.
	FieldValues map[string]string
	// CanonicalFieldValues holds --field-value id=value pairs, submitted as the
	// canonical `field_values` keyed by the field IDs the API returned.
	CanonicalFieldValues map[string]string
	// SelectedChoiceID is the canonical choice ID from the API's `choices` list.
	SelectedChoiceID string
	// InteractionID pins the submission to the canonical interaction the values
	// were read from. Left empty, the CLI reads the connection's current
	// interaction ID, since the API requires one for canonical submissions.
	InteractionID     string
	MfaOptionID       string
	SignInOptionID    string
	SSOButtonSelector string
	SSOProvider       string
	Output            string
}

type AuthConnectionTimelineInput added in v0.25.0

type AuthConnectionTimelineInput struct {
	ID      string
	Type    string
	Page    int
	PerPage int
	Output  string
}

type AuthConnectionUpdateInput added in v0.15.7

type AuthConnectionUpdateInput struct {
	ID                     string
	LoginURL               string
	LoginURLSet            bool
	AllowedDomains         []string
	AllowedDomainsSet      bool
	CredentialName         string
	CredentialNameSet      bool
	CredentialProvider     string
	CredentialProviderSet  bool
	CredentialPath         string
	CredentialPathSet      bool
	CredentialAuto         BoolFlag
	ProxyID                string
	ProxyIDSet             bool
	ProxyName              string
	ProxyNameSet           bool
	ProxyMode              string
	Region                 string
	Stealth                BoolFlag
	SaveCredentials        BoolFlag
	HealthCheckInterval    int
	HealthCheckIntervalSet bool
	HealthChecks           BoolFlag
	AutoReauth             BoolFlag
	Hitl                   BoolFlag
	RecordSession          BoolFlag
	Telemetry              string
	TelemetryCdpExclude    string
	TelemetryExport        string
	TelemetryStorage       string
	Output                 string
}

type AuthContextCmd added in v0.30.0

type AuthContextCmd struct {
	// contains filtered or unexported fields
}

AuthContextCmd handles auth context operations independent of cobra.

func (AuthContextCmd) Get added in v0.30.0

type AuthContextGetInput added in v0.30.0

type AuthContextGetInput struct {
	Output string
}

type AuthContextService added in v0.30.0

type AuthContextService interface {
	Get(ctx context.Context, opts ...option.RequestOption) (res *kernel.AuthContext, err error)
}

AuthContextService defines the subset of the Kernel SDK auth context client that we use.

type BoolFlag

type BoolFlag struct {
	Set   bool
	Value bool
}

BoolFlag captures whether a boolean flag was set explicitly and its value.

type BrowserComputerService

type BrowserComputerService interface {
	Batch(ctx context.Context, idOrName string, body kernel.BrowserComputerBatchParams, opts ...option.RequestOption) (err error)
	CaptureScreenshot(ctx context.Context, idOrName string, body kernel.BrowserComputerCaptureScreenshotParams, opts ...option.RequestOption) (res *http.Response, err error)
	ClickMouse(ctx context.Context, idOrName string, body kernel.BrowserComputerClickMouseParams, opts ...option.RequestOption) (err error)
	DragMouse(ctx context.Context, idOrName string, body kernel.BrowserComputerDragMouseParams, opts ...option.RequestOption) (err error)
	GetMousePosition(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.BrowserComputerGetMousePositionResponse, err error)
	MoveMouse(ctx context.Context, idOrName string, body kernel.BrowserComputerMoveMouseParams, opts ...option.RequestOption) (err error)
	PressKey(ctx context.Context, idOrName string, body kernel.BrowserComputerPressKeyParams, opts ...option.RequestOption) (err error)
	ReadClipboard(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.BrowserComputerReadClipboardResponse, err error)
	Scroll(ctx context.Context, idOrName string, body kernel.BrowserComputerScrollParams, opts ...option.RequestOption) (err error)
	SetCursorVisibility(ctx context.Context, idOrName string, body kernel.BrowserComputerSetCursorVisibilityParams, opts ...option.RequestOption) (res *kernel.BrowserComputerSetCursorVisibilityResponse, err error)
	TypeText(ctx context.Context, idOrName string, body kernel.BrowserComputerTypeTextParams, opts ...option.RequestOption) (err error)
	WriteClipboard(ctx context.Context, idOrName string, body kernel.BrowserComputerWriteClipboardParams, opts ...option.RequestOption) (err error)
}

BrowserComputerService defines the subset we use for OS-level mouse & screen.

type BrowserFSService

type BrowserFSService interface {
	NewDirectory(ctx context.Context, idOrName string, body kernel.BrowserFNewDirectoryParams, opts ...option.RequestOption) (err error)
	DeleteDirectory(ctx context.Context, idOrName string, body kernel.BrowserFDeleteDirectoryParams, opts ...option.RequestOption) (err error)
	DeleteFile(ctx context.Context, idOrName string, body kernel.BrowserFDeleteFileParams, opts ...option.RequestOption) (err error)
	DownloadDirZip(ctx context.Context, idOrName string, query kernel.BrowserFDownloadDirZipParams, opts ...option.RequestOption) (res *http.Response, err error)
	FileInfo(ctx context.Context, idOrName string, query kernel.BrowserFFileInfoParams, opts ...option.RequestOption) (res *kernel.BrowserFFileInfoResponse, err error)
	ListFiles(ctx context.Context, idOrName string, query kernel.BrowserFListFilesParams, opts ...option.RequestOption) (res *[]kernel.BrowserFListFilesResponse, err error)
	Move(ctx context.Context, idOrName string, body kernel.BrowserFMoveParams, opts ...option.RequestOption) (err error)
	ReadFile(ctx context.Context, idOrName string, query kernel.BrowserFReadFileParams, opts ...option.RequestOption) (res *http.Response, err error)
	SetFilePermissions(ctx context.Context, idOrName string, body kernel.BrowserFSetFilePermissionsParams, opts ...option.RequestOption) (err error)
	Upload(ctx context.Context, idOrName string, body kernel.BrowserFUploadParams, opts ...option.RequestOption) (err error)
	UploadZip(ctx context.Context, idOrName string, body kernel.BrowserFUploadZipParams, opts ...option.RequestOption) (err error)
	WriteFile(ctx context.Context, idOrName string, contents io.Reader, body kernel.BrowserFWriteFileParams, opts ...option.RequestOption) (err error)
}

BrowserFSService defines the subset we use for browser filesystem APIs.

type BrowserFWatchService added in v0.14.0

type BrowserFWatchService interface {
	EventsStreaming(ctx context.Context, watchID string, query kernel.BrowserFWatchEventsParams, opts ...option.RequestOption) (stream *ssestream.Stream[kernel.BrowserFWatchEventsResponse])
	Start(ctx context.Context, idOrName string, body kernel.BrowserFWatchStartParams, opts ...option.RequestOption) (res *kernel.BrowserFWatchStartResponse, err error)
	Stop(ctx context.Context, watchID string, body kernel.BrowserFWatchStopParams, opts ...option.RequestOption) (err error)
}

BrowserFWatchService defines the subset we use for browser filesystem watch APIs.

type BrowserLogService

type BrowserLogService interface {
	StreamStreaming(ctx context.Context, idOrName string, query kernel.BrowserLogStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[shared.LogEvent])
}

BrowserLogService defines the subset we use for browser log APIs.

type BrowserPlaywrightExecutorService added in v0.46.0

type BrowserPlaywrightExecutorService interface {
	List(ctx context.Context, idOrName string, opts ...option.RequestOption) (*kernel.ExecutorList, error)
	Delete(ctx context.Context, name string, params kernel.BrowserPlaywrightExecutorDeleteParams, opts ...option.RequestOption) error
}

BrowserPlaywrightExecutorService defines the subset we use for Playwright executors.

type BrowserPlaywrightService

type BrowserPlaywrightService interface {
	Execute(ctx context.Context, idOrName string, body kernel.BrowserPlaywrightExecuteParams, opts ...option.RequestOption) (res *kernel.BrowserPlaywrightExecuteResponse, err error)
}

BrowserPlaywrightService defines the subset we use for Playwright execution.

type BrowserPoolsAcquireInput

type BrowserPoolsAcquireInput struct {
	IDOrName            string
	TimeoutSeconds      int64
	Name                string
	StartURL            string
	Tags                map[string]string
	Telemetry           string
	TelemetryCdpExclude string
	ProfileID           string
	ProfileName         string
	ProfileSaveChanges  bool
	Output              string
}

type BrowserPoolsCmd

type BrowserPoolsCmd struct {
	// contains filtered or unexported fields
}

func (BrowserPoolsCmd) Acquire

func (BrowserPoolsCmd) Create

func (BrowserPoolsCmd) Delete

func (BrowserPoolsCmd) Flush

func (BrowserPoolsCmd) Get

func (BrowserPoolsCmd) List

func (BrowserPoolsCmd) Release

func (BrowserPoolsCmd) Update

type BrowserPoolsCreateInput

type BrowserPoolsCreateInput struct {
	Name                   string
	Size                   int64
	FillRate               int64
	TimeoutSeconds         int64
	Stealth                BoolFlag
	Headless               BoolFlag
	Kiosk                  BoolFlag
	Memory                 string
	RefreshOnProfileUpdate BoolFlag
	ProfileID              string
	ProfileName            string
	ProxyID                string
	Region                 string
	PrivateHosts           []string
	ProxyRoutes            []string
	AllowedHosts           []string
	AllowedHostsProvided   bool
	StartURL               string
	Extensions             []string
	Viewport               string
	ChromePolicy           string
	ChromePolicyFile       string
	Telemetry              string
	TelemetryCdpExclude    string
	Output                 string
}

type BrowserPoolsDeleteInput

type BrowserPoolsDeleteInput struct {
	IDOrName string
	Force    bool
}

type BrowserPoolsFlushInput

type BrowserPoolsFlushInput struct {
	IDOrName string
}

type BrowserPoolsGetInput

type BrowserPoolsGetInput struct {
	IDOrName string
	Output   string
}

type BrowserPoolsListInput

type BrowserPoolsListInput struct {
	Name   string
	Query  string
	Limit  int
	Offset int
	Region string
	Output string
}

type BrowserPoolsReleaseInput

type BrowserPoolsReleaseInput struct {
	IDOrName  string
	SessionID string
	Reuse     BoolFlag
}

type BrowserPoolsService

BrowserPoolsService defines the subset of the Kernel SDK browser pools client that we use.

type BrowserPoolsUpdateInput

type BrowserPoolsUpdateInput struct {
	IDOrName               string
	Name                   string
	Size                   int64
	FillRate               Int64Flag
	TimeoutSeconds         int64
	Stealth                BoolFlag
	Headless               BoolFlag
	Kiosk                  BoolFlag
	Memory                 string
	RefreshOnProfileUpdate BoolFlag
	ProfileID              string
	ProfileName            string
	ClearProfile           bool
	ProxyID                string
	ClearProxy             bool
	StartURL               string
	ClearStartURL          bool
	Extensions             []string
	ClearExtensions        bool
	PrivateHosts           []string
	ClearPrivateHosts      bool
	ProxyRoutes            []string
	ClearProxyRoutes       bool
	AllowedHosts           []string
	AllowedHostsProvided   bool
	ClearAllowedHosts      bool
	ExpectedNetwork        string
	ExpectedNetworkSet     bool
	Viewport               string
	ChromePolicy           string
	ChromePolicyFile       string
	ClearChromePolicy      bool
	Telemetry              string
	TelemetryCdpExclude    string
	DiscardAllIdle         BoolFlag
	Output                 string
}

type BrowserProcessService

BrowserProcessService defines the subset we use for browser process APIs.

type BrowserReplaysService

type BrowserReplaysService interface {
	List(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *[]kernel.BrowserReplayListResponse, err error)
	Download(ctx context.Context, replayID string, query kernel.BrowserReplayDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)
	Start(ctx context.Context, idOrName string, body kernel.BrowserReplayStartParams, opts ...option.RequestOption) (res *kernel.BrowserReplayStartResponse, err error)
	Stop(ctx context.Context, replayID string, body kernel.BrowserReplayStopParams, opts ...option.RequestOption) (err error)
}

BrowserReplaysService defines the subset we use for browser replays.

type BrowserTelemetryService added in v0.19.3

BrowserTelemetryService defines the subset we use for browser telemetry streaming.

type BrowserWebMCPCustomToolsService added in v0.41.0

type BrowserWebMCPCustomToolsService interface {
	List(ctx context.Context, idOrName string, opts ...option.RequestOption) (*kernel.CustomToolsResponse, error)
	Add(ctx context.Context, idOrName string, body kernel.BrowserWebmcpCustomToolAddParams, opts ...option.RequestOption) (*kernel.CustomToolsResponse, error)
	Remove(ctx context.Context, id string, body kernel.BrowserWebmcpCustomToolRemoveParams, opts ...option.RequestOption) error
}

type BrowserWebMCPService added in v0.35.0

type BrowserWebMCPService interface {
	ListTools(ctx context.Context, idOrName string, query kernel.BrowserWebmcpListToolsParams, opts ...option.RequestOption) (*kernel.ToolsResponse, error)
	InvokeTool(ctx context.Context, idOrName string, body kernel.BrowserWebmcpInvokeToolParams, opts ...option.RequestOption) (*kernel.InvocationResult, error)
}

BrowserWebMCPService defines the subset we use for WebMCP tools.

type BrowsersCmd

type BrowsersCmd struct {
	// contains filtered or unexported fields
}

BrowsersCmd is a cobra-independent command handler for browsers operations.

func (BrowsersCmd) ComputerBatch added in v0.14.11

func (b BrowsersCmd) ComputerBatch(ctx context.Context, in BrowsersComputerBatchInput) error

func (BrowsersCmd) ComputerClickMouse

func (b BrowsersCmd) ComputerClickMouse(ctx context.Context, in BrowsersComputerClickMouseInput) error

func (BrowsersCmd) ComputerDragMouse

func (b BrowsersCmd) ComputerDragMouse(ctx context.Context, in BrowsersComputerDragMouseInput) error

func (BrowsersCmd) ComputerGetMousePosition added in v0.14.11

func (b BrowsersCmd) ComputerGetMousePosition(ctx context.Context, in BrowsersComputerGetMousePositionInput) error

func (BrowsersCmd) ComputerMoveMouse

func (b BrowsersCmd) ComputerMoveMouse(ctx context.Context, in BrowsersComputerMoveMouseInput) error

func (BrowsersCmd) ComputerPressKey

func (b BrowsersCmd) ComputerPressKey(ctx context.Context, in BrowsersComputerPressKeyInput) error

func (BrowsersCmd) ComputerReadClipboard added in v0.15.6

func (b BrowsersCmd) ComputerReadClipboard(ctx context.Context, in BrowsersComputerReadClipboardInput) error

func (BrowsersCmd) ComputerScreenshot

func (b BrowsersCmd) ComputerScreenshot(ctx context.Context, in BrowsersComputerScreenshotInput) error

func (BrowsersCmd) ComputerScroll

func (b BrowsersCmd) ComputerScroll(ctx context.Context, in BrowsersComputerScrollInput) error

func (BrowsersCmd) ComputerSetCursor

func (b BrowsersCmd) ComputerSetCursor(ctx context.Context, in BrowsersComputerSetCursorInput) error

func (BrowsersCmd) ComputerTypeText

func (b BrowsersCmd) ComputerTypeText(ctx context.Context, in BrowsersComputerTypeTextInput) error

func (BrowsersCmd) ComputerWriteClipboard added in v0.15.6

func (b BrowsersCmd) ComputerWriteClipboard(ctx context.Context, in BrowsersComputerWriteClipboardInput) error

func (BrowsersCmd) Create

func (BrowsersCmd) Curl added in v0.18.0

func (BrowsersCmd) Delete

func (BrowsersCmd) ExtensionsUpload

func (b BrowsersCmd) ExtensionsUpload(ctx context.Context, in BrowsersExtensionsUploadInput) error

func (BrowsersCmd) FSDeleteDirectory

func (b BrowsersCmd) FSDeleteDirectory(ctx context.Context, in BrowsersFSDeleteDirInput) error

func (BrowsersCmd) FSDeleteFile

func (b BrowsersCmd) FSDeleteFile(ctx context.Context, in BrowsersFSDeleteFileInput) error

func (BrowsersCmd) FSDownloadDirZip

func (b BrowsersCmd) FSDownloadDirZip(ctx context.Context, in BrowsersFSDownloadDirZipInput) error

func (BrowsersCmd) FSFileInfo

func (BrowsersCmd) FSListFiles

func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error

func (BrowsersCmd) FSMove

func (BrowsersCmd) FSNewDirectory

func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error

func (BrowsersCmd) FSReadFile

func (BrowsersCmd) FSSetPermissions

func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error

func (BrowsersCmd) FSUpload

func (BrowsersCmd) FSUploadZip

func (b BrowsersCmd) FSUploadZip(ctx context.Context, in BrowsersFSUploadZipInput) error

func (BrowsersCmd) FSWatchEvents added in v0.14.0

func (b BrowsersCmd) FSWatchEvents(ctx context.Context, in BrowsersFSWatchEventsInput) error

func (BrowsersCmd) FSWatchStart added in v0.14.0

func (b BrowsersCmd) FSWatchStart(ctx context.Context, in BrowsersFSWatchStartInput) error

FS Watch

func (BrowsersCmd) FSWatchStop added in v0.14.0

func (b BrowsersCmd) FSWatchStop(ctx context.Context, in BrowsersFSWatchStopInput) error

func (BrowsersCmd) FSWriteFile

func (b BrowsersCmd) FSWriteFile(ctx context.Context, in BrowsersFSWriteFileInput) error

func (BrowsersCmd) Get

func (BrowsersCmd) List

func (BrowsersCmd) LogsStream

func (BrowsersCmd) PlaywrightExecute

func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) error

func (BrowsersCmd) PlaywrightExecutorsDelete added in v0.46.0

func (b BrowsersCmd) PlaywrightExecutorsDelete(ctx context.Context, in BrowsersPlaywrightExecutorsDeleteInput) error

func (BrowsersCmd) PlaywrightExecutorsList added in v0.46.0

func (b BrowsersCmd) PlaywrightExecutorsList(ctx context.Context, in BrowsersPlaywrightExecutorsListInput) error

func (BrowsersCmd) ProcessExec

func (b BrowsersCmd) ProcessExec(ctx context.Context, in BrowsersProcessExecInput) error

func (BrowsersCmd) ProcessKill

func (b BrowsersCmd) ProcessKill(ctx context.Context, in BrowsersProcessKillInput) error

func (BrowsersCmd) ProcessResize added in v0.14.0

func (b BrowsersCmd) ProcessResize(ctx context.Context, in BrowsersProcessResizeInput) error

func (BrowsersCmd) ProcessSpawn

func (b BrowsersCmd) ProcessSpawn(ctx context.Context, in BrowsersProcessSpawnInput) error

func (BrowsersCmd) ProcessStatus

func (b BrowsersCmd) ProcessStatus(ctx context.Context, in BrowsersProcessStatusInput) error

func (BrowsersCmd) ProcessStdin

func (b BrowsersCmd) ProcessStdin(ctx context.Context, in BrowsersProcessStdinInput) error

func (BrowsersCmd) ProcessStdoutStream

func (b BrowsersCmd) ProcessStdoutStream(ctx context.Context, in BrowsersProcessStdoutStreamInput) error

func (BrowsersCmd) Repl added in v0.38.2

func (BrowsersCmd) ReplaysDownload

func (b BrowsersCmd) ReplaysDownload(ctx context.Context, in BrowsersReplaysDownloadInput) error

func (BrowsersCmd) ReplaysList

func (b BrowsersCmd) ReplaysList(ctx context.Context, in BrowsersReplaysListInput) error

func (BrowsersCmd) ReplaysStart

func (b BrowsersCmd) ReplaysStart(ctx context.Context, in BrowsersReplaysStartInput) error

func (BrowsersCmd) ReplaysStop

func (b BrowsersCmd) ReplaysStop(ctx context.Context, in BrowsersReplaysStopInput) error

func (BrowsersCmd) SaveProfile added in v0.51.0

func (b BrowsersCmd) SaveProfile(ctx context.Context, in BrowsersSaveProfileInput) error

func (BrowsersCmd) TelemetryEvents added in v0.21.0

func (b BrowsersCmd) TelemetryEvents(ctx context.Context, in BrowsersTelemetryEventsInput) error

func (BrowsersCmd) TelemetryStream added in v0.19.3

func (b BrowsersCmd) TelemetryStream(ctx context.Context, in BrowsersTelemetryStreamInput) error

func (BrowsersCmd) Update added in v0.13.5

func (BrowsersCmd) View

func (BrowsersCmd) WebMCPInvoke added in v0.35.0

func (b BrowsersCmd) WebMCPInvoke(ctx context.Context, in BrowsersWebMCPInvokeInput) error

func (BrowsersCmd) WebMCPList added in v0.35.0

type BrowsersComputerBatchInput added in v0.14.11

type BrowsersComputerBatchInput struct {
	Identifier  string
	ActionsJSON string
}

type BrowsersComputerClickMouseInput

type BrowsersComputerClickMouseInput struct {
	Identifier string
	X          int64
	Y          int64
	NumClicks  int64
	Button     string
	ClickType  string
	HoldKeys   []string
}

Computer (mouse/screen)

type BrowsersComputerDragMouseInput

type BrowsersComputerDragMouseInput struct {
	Identifier      string
	Path            [][]int64
	Delay           int64
	StepDelayMs     int64
	StepsPerSegment int64
	Button          string
	HoldKeys        []string
	Smooth          *bool
	DurationMs      *int64
}

type BrowsersComputerGetMousePositionInput added in v0.14.11

type BrowsersComputerGetMousePositionInput struct {
	Identifier string
	Output     string
}

type BrowsersComputerMoveMouseInput

type BrowsersComputerMoveMouseInput struct {
	Identifier string
	X          int64
	Y          int64
	HoldKeys   []string
	Smooth     *bool
	DurationMs *int64
}

type BrowsersComputerPressKeyInput

type BrowsersComputerPressKeyInput struct {
	Identifier string
	Keys       []string
	Duration   int64
	HoldKeys   []string
}

type BrowsersComputerReadClipboardInput added in v0.15.6

type BrowsersComputerReadClipboardInput struct {
	Identifier string
	Output     string
}

type BrowsersComputerScreenshotInput

type BrowsersComputerScreenshotInput struct {
	Identifier string
	X          int64
	Y          int64
	Width      int64
	Height     int64
	To         string
	HasRegion  bool
}

type BrowsersComputerScrollInput

type BrowsersComputerScrollInput struct {
	Identifier string
	X          int64
	Y          int64
	DeltaX     int64
	DeltaXSet  bool
	DeltaY     int64
	DeltaYSet  bool
	HoldKeys   []string
}

type BrowsersComputerSetCursorInput

type BrowsersComputerSetCursorInput struct {
	Identifier string
	Hidden     bool
}

type BrowsersComputerTypeTextInput

type BrowsersComputerTypeTextInput struct {
	Identifier string
	Text       string
	Delay      int64
}

type BrowsersComputerWriteClipboardInput added in v0.15.6

type BrowsersComputerWriteClipboardInput struct {
	Identifier string
	Text       string
}

type BrowsersCreateInput

type BrowsersCreateInput struct {
	TimeoutSeconds       int
	Stealth              BoolFlag
	Headless             BoolFlag
	GPU                  BoolFlag
	Memory               string
	VideoMemory          string
	FingerprintOS        string
	InvocationID         string
	Kiosk                BoolFlag
	ProfileID            string
	ProfileName          string
	ProfileSaveChanges   BoolFlag
	ProxyID              string
	ProxyName            string
	ProxyMode            string
	Region               string
	PrivateHosts         []string
	AllowedHosts         []string
	AllowedHostsProvided bool
	ProxyRoutes          []string
	StartURL             string
	Timezone             string
	Locale               string
	Extensions           []string
	Vaults               []string
	Viewport             string
	Telemetry            string
	TelemetryCdpExclude  string
	TelemetryExport      string
	TelemetryStorage     string
	ChromePolicy         string
	ChromePolicyFile     string
	Name                 string
	Tags                 map[string]string
	Output               string
}

Inputs for each command

type BrowsersCurlInput added in v0.18.0

type BrowsersCurlInput struct {
	Identifier string
	URL        string
	Method     string
	Headers    []string
	Data       string
	DataFile   string
	MaxTime    time.Duration
	OutputFile string
	Head       bool
	Include    bool
	DumpHeader string
	WriteOut   string
	Fail       bool
	Silent     bool
}

type BrowsersDeleteInput

type BrowsersDeleteInput struct {
	Identifier string
}

type BrowsersExtensionsUploadInput

type BrowsersExtensionsUploadInput struct {
	Identifier     string
	ExtensionPaths []string
}

type BrowsersFSDeleteDirInput

type BrowsersFSDeleteDirInput struct {
	Identifier string
	Path       string
}

type BrowsersFSDeleteFileInput

type BrowsersFSDeleteFileInput struct {
	Identifier string
	Path       string
}

type BrowsersFSDownloadDirZipInput

type BrowsersFSDownloadDirZipInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSFileInfoInput

type BrowsersFSFileInfoInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSListFilesInput

type BrowsersFSListFilesInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSMoveInput

type BrowsersFSMoveInput struct {
	Identifier string
	SrcPath    string
	DestPath   string
}

type BrowsersFSNewDirInput

type BrowsersFSNewDirInput struct {
	Identifier string
	Path       string
	Mode       string
}

FS (minimal scaffolding)

type BrowsersFSReadFileInput

type BrowsersFSReadFileInput struct {
	Identifier string
	Path       string
	Output     string
}

type BrowsersFSSetPermsInput

type BrowsersFSSetPermsInput struct {
	Identifier string
	Path       string
	Mode       string
	Owner      string
	Group      string
}

type BrowsersFSUploadInput

type BrowsersFSUploadInput struct {
	Identifier string
	Mappings   []struct {
		Local string
		Dest  string
	}
	DestDir string
	Paths   []string
}

Upload inputs

type BrowsersFSUploadZipInput

type BrowsersFSUploadZipInput struct {
	Identifier string
	ZipPath    string
	DestDir    string
}

type BrowsersFSWatchEventsInput added in v0.14.0

type BrowsersFSWatchEventsInput struct {
	Identifier string
	WatchID    string
}

type BrowsersFSWatchStartInput added in v0.14.0

type BrowsersFSWatchStartInput struct {
	Identifier string
	Path       string
	Recursive  BoolFlag
	Output     string
}

FS Watch

type BrowsersFSWatchStopInput added in v0.14.0

type BrowsersFSWatchStopInput struct {
	Identifier string
	WatchID    string
}

type BrowsersFSWriteFileInput

type BrowsersFSWriteFileInput struct {
	Identifier string
	DestPath   string
	Mode       string
	SourcePath string
}

type BrowsersGetInput

type BrowsersGetInput struct {
	Identifier     string
	IncludeDeleted bool
	Output         string
}

type BrowsersListInput

type BrowsersListInput struct {
	Output         string
	IncludeDeleted bool
	Status         string
	Limit          int
	Offset         int
	Query          string
	Region         string
	Tags           map[string]string
}

type BrowsersLogsStreamInput

type BrowsersLogsStreamInput struct {
	Identifier        string
	Source            string
	Follow            BoolFlag
	Path              string
	SupervisorProcess string
}

Logs

type BrowsersPlaywrightExecuteInput

type BrowsersPlaywrightExecuteInput struct {
	Identifier string
	Code       string
	Executor   string
	Timeout    int64
	Output     string
}

type BrowsersPlaywrightExecutorsDeleteInput added in v0.46.0

type BrowsersPlaywrightExecutorsDeleteInput struct {
	Identifier string
	Name       string
	CloseTab   param.Opt[bool]
}

type BrowsersPlaywrightExecutorsListInput added in v0.46.0

type BrowsersPlaywrightExecutorsListInput struct {
	Identifier string
	Output     string
}

type BrowsersProcessExecInput

type BrowsersProcessExecInput struct {
	Identifier string
	Command    string
	Args       []string
	Cwd        string
	Timeout    int
	AsUser     string
	AsRoot     BoolFlag
	Env        []string
	Output     string
}

Process

type BrowsersProcessKillInput

type BrowsersProcessKillInput struct {
	Identifier string
	ProcessID  string
	Signal     string
}

type BrowsersProcessResizeInput added in v0.14.0

type BrowsersProcessResizeInput struct {
	Identifier string
	ProcessID  string
	Cols       int64
	Rows       int64
}

type BrowsersProcessSpawnInput

type BrowsersProcessSpawnInput struct {
	Identifier  string
	Command     string
	Args        []string
	Cwd         string
	Timeout     int
	AsUser      string
	AsRoot      BoolFlag
	AllocateTTY BoolFlag
	Cols        int64
	Rows        int64
	Env         []string
	Output      string
}

type BrowsersProcessStatusInput

type BrowsersProcessStatusInput struct {
	Identifier string
	ProcessID  string
}

type BrowsersProcessStdinInput

type BrowsersProcessStdinInput struct {
	Identifier string
	ProcessID  string
	DataB64    string
}

type BrowsersProcessStdoutStreamInput

type BrowsersProcessStdoutStreamInput struct {
	Identifier string
	ProcessID  string
}

type BrowsersReplInput added in v0.38.2

type BrowsersReplInput struct {
	Identifier string
	Code       string
	Reset      bool
	TimeoutSec int64
	ImageDir   string
	Output     string
}

REPL

type BrowsersReplaysDownloadInput

type BrowsersReplaysDownloadInput struct {
	Identifier string
	ReplayID   string
	Output     string
}

type BrowsersReplaysListInput

type BrowsersReplaysListInput struct {
	Identifier string
	Output     string
}

Replays

type BrowsersReplaysStartInput

type BrowsersReplaysStartInput struct {
	Identifier         string
	Framerate          int
	MaxDurationSeconds int
	RecordAudio        bool
	Output             string
}

type BrowsersReplaysStopInput

type BrowsersReplaysStopInput struct {
	Identifier string
	ReplayID   string
}

type BrowsersSaveProfileInput added in v0.51.0

type BrowsersSaveProfileInput struct {
	Identifier  string
	ProfileID   string
	ProfileName string
	Output      string
}

type BrowsersService

type BrowsersService interface {
	Get(ctx context.Context, idOrName string, query kernel.BrowserGetParams, opts ...option.RequestOption) (res *kernel.BrowserGetResponse, err error)
	List(ctx context.Context, query kernel.BrowserListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.BrowserListResponse], err error)
	New(ctx context.Context, body kernel.BrowserNewParams, opts ...option.RequestOption) (res *kernel.BrowserNewResponse, err error)
	Update(ctx context.Context, idOrName string, body kernel.BrowserUpdateParams, opts ...option.RequestOption) (res *kernel.BrowserUpdateResponse, err error)
	DeleteByID(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	HTTPClient(id string, opts ...option.RequestOption) (*http.Client, error)
	LoadExtensions(ctx context.Context, idOrName string, body kernel.BrowserLoadExtensionsParams, opts ...option.RequestOption) (err error)
	Repl(ctx context.Context, idOrName string, body kernel.BrowserReplParams, opts ...option.RequestOption) (res *kernel.BrowserReplResult, err error)
	SaveProfile(ctx context.Context, idOrName string, body kernel.BrowserSaveProfileParams, opts ...option.RequestOption) (res *kernel.Profile, err error)
}

BrowsersService defines the subset of the Kernel SDK browser client that we use. See https://github.com/kernel/kernel-go-sdk/blob/main/browser.go

type BrowsersTelemetryEventsInput added in v0.21.0

type BrowsersTelemetryEventsInput struct {
	Identifier string
	Limit      int64
	Offset     int64
	Order      string
	Since      string
	Until      string
	Categories []string
	Types      []string
	All        bool
	Output     string
}

type BrowsersTelemetryStreamInput added in v0.19.3

type BrowsersTelemetryStreamInput struct {
	Identifier string
	Categories []string
	Types      []string
	Seq        int64
	Replay     string
	Output     string
}

type BrowsersUpdateInput added in v0.13.5

type BrowsersUpdateInput struct {
	Identifier          string
	ProxyID             string
	ProxyName           string
	ProxyMode           string
	ClearProxy          bool
	DisableDefaultProxy BoolFlag
	ProfileID           string
	ProfileName         string
	ProfileSaveChanges  BoolFlag
	Viewport            string
	Force               bool
	Telemetry           string
	TelemetryCdpExclude string
	Name                string
	SetName             bool
	ClearName           bool
	Tags                map[string]string
	TagsProvided        bool
	ClearTags           bool
	StartURL            string
	// Timezone and Locale set the session's location overrides when SetTimezone
	// and SetLocale are set; ClearTimezone and ClearLocale remove them.
	Timezone      string
	SetTimezone   bool
	ClearTimezone bool
	Locale        string
	SetLocale     bool
	ClearLocale   bool
	// AllowedHosts replaces the session's egress allowlist when
	// AllowedHostsProvided is set; ClearAllowedHosts removes it.
	AllowedHosts              []string
	AllowedHostsProvided      bool
	ClearAllowedHosts         bool
	ExpectedAllowlistRevision string
	MutationID                string
	Output                    string
}

type BrowsersViewInput

type BrowsersViewInput struct {
	Identifier string
	Output     string
}

type BrowsersWebMCPCustomToolsAddInput added in v0.41.0

type BrowsersWebMCPCustomToolsAddInput struct {
	Identifier              string
	Namespace               string
	Source                  string
	ForceOverwriteNamespace param.Opt[bool]
	Output                  string
}

type BrowsersWebMCPCustomToolsCmd added in v0.41.0

type BrowsersWebMCPCustomToolsCmd struct {
	// contains filtered or unexported fields
}

func (BrowsersWebMCPCustomToolsCmd) Add added in v0.41.0

func (BrowsersWebMCPCustomToolsCmd) List added in v0.41.0

func (BrowsersWebMCPCustomToolsCmd) Remove added in v0.41.0

func (b BrowsersWebMCPCustomToolsCmd) Remove(ctx context.Context, identifier, id string) error

type BrowsersWebMCPCustomToolsListInput added in v0.41.0

type BrowsersWebMCPCustomToolsListInput struct {
	Identifier string
	Output     string
}

type BrowsersWebMCPInvokeInput added in v0.35.0

type BrowsersWebMCPInvokeInput struct {
	Identifier string
	ToolRef    string
	Input      string
	TimeoutSec param.Opt[int64]
}

type BrowsersWebMCPListInput added in v0.35.0

type BrowsersWebMCPListInput struct {
	Identifier    string
	Output        string
	ExcludeCustom param.Opt[bool]
}

type CreateCmd

type CreateCmd struct {
	// contains filtered or unexported fields
}

CreateCmd is a cobra-independent command handler for create operations

func (CreateCmd) Create

func (c CreateCmd) Create(ctx context.Context, ci create.CreateInput) error

Create executes the creating a new Kernel app logic

type CredentialProvidersCmd added in v0.14.0

type CredentialProvidersCmd struct {
	// contains filtered or unexported fields
}

CredentialProvidersCmd handles credential provider operations independent of cobra.

func (CredentialProvidersCmd) Create added in v0.14.0

func (CredentialProvidersCmd) Delete added in v0.14.0

func (CredentialProvidersCmd) Get added in v0.14.0

func (CredentialProvidersCmd) List added in v0.14.0

func (CredentialProvidersCmd) ListItems added in v0.14.8

func (CredentialProvidersCmd) Test added in v0.14.0

func (CredentialProvidersCmd) Update added in v0.14.0

type CredentialProvidersCreateInput added in v0.14.0

type CredentialProvidersCreateInput struct {
	Name            string
	ProviderType    string
	Token           string
	CacheTtlSeconds int64
	Output          string
}

type CredentialProvidersDeleteInput added in v0.14.0

type CredentialProvidersDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type CredentialProvidersGetInput added in v0.14.0

type CredentialProvidersGetInput struct {
	ID     string
	Output string
}

type CredentialProvidersListInput added in v0.14.0

type CredentialProvidersListInput struct {
	Query  string
	Limit  int
	Offset int
	Output string
}

type CredentialProvidersListItemsInput added in v0.14.8

type CredentialProvidersListItemsInput struct {
	ID     string
	Output string
}

type CredentialProvidersService added in v0.14.0

CredentialProvidersService defines the subset of the Kernel SDK credential provider client that we use.

type CredentialProvidersTestInput added in v0.14.0

type CredentialProvidersTestInput struct {
	ID     string
	Output string
}

type CredentialProvidersUpdateInput added in v0.14.0

type CredentialProvidersUpdateInput struct {
	ID              string
	Name            string
	Token           string
	CacheTtlSeconds int64
	Enabled         BoolFlag
	Priority        Int64Flag
	Output          string
}

type CredentialsCmd added in v0.14.0

type CredentialsCmd struct {
	// contains filtered or unexported fields
}

CredentialsCmd handles credential operations independent of cobra.

func (CredentialsCmd) Create added in v0.14.0

func (CredentialsCmd) Delete added in v0.14.0

func (CredentialsCmd) Get added in v0.14.0

func (CredentialsCmd) List added in v0.14.0

func (CredentialsCmd) TotpCode added in v0.14.0

func (CredentialsCmd) Update added in v0.14.0

type CredentialsCreateInput added in v0.14.0

type CredentialsCreateInput struct {
	Name          string
	Domain        string
	Values        map[string]string
	SSOProvider   string
	TotpSecret    string
	TotpAlgorithm string
	TotpDigits    *int
	TotpPeriod    *int
	Output        string
}

type CredentialsDeleteInput added in v0.14.0

type CredentialsDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type CredentialsGetInput added in v0.14.0

type CredentialsGetInput struct {
	Identifier string
	Output     string
}

type CredentialsListInput added in v0.14.0

type CredentialsListInput struct {
	Domain string
	Query  string
	Limit  int
	Offset int
	Output string
}

type CredentialsService added in v0.14.0

type CredentialsService interface {
	New(ctx context.Context, body kernel.CredentialNewParams, opts ...option.RequestOption) (res *kernel.Credential, err error)
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Credential, err error)
	Update(ctx context.Context, idOrName string, body kernel.CredentialUpdateParams, opts ...option.RequestOption) (res *kernel.Credential, err error)
	List(ctx context.Context, query kernel.CredentialListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.Credential], err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	TotpCode(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.CredentialTotpCodeResponse, err error)
}

CredentialsService defines the subset of the Kernel SDK credential client that we use.

type CredentialsTotpCodeInput added in v0.14.0

type CredentialsTotpCodeInput struct {
	Identifier string
	Output     string
}

type CredentialsUpdateInput added in v0.14.0

type CredentialsUpdateInput struct {
	Identifier      string
	Name            string
	SSOProvider     string
	TotpSecret      string
	TotpAlgorithm   string
	TotpDigits      *int
	TotpPeriod      *int
	Values          map[string]string
	RemoveValueKeys []string
	Output          string
}

type ExtensionsCmd

type ExtensionsCmd struct {
	// contains filtered or unexported fields
}

ExtensionsCmd handles extension operations independent of cobra.

func (ExtensionsCmd) Delete

func (ExtensionsCmd) Download

func (ExtensionsCmd) DownloadWebStore

func (ExtensionsCmd) Get added in v0.21.0

func (ExtensionsCmd) List

func (ExtensionsCmd) Upload

type ExtensionsDeleteInput

type ExtensionsDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type ExtensionsDownloadInput

type ExtensionsDownloadInput struct {
	Identifier string
	Output     string
}

type ExtensionsDownloadWebStoreInput

type ExtensionsDownloadWebStoreInput struct {
	URL    string
	Output string
	OS     string
}

type ExtensionsGetInput added in v0.21.0

type ExtensionsGetInput struct {
	Identifier string
	Output     string
}

type ExtensionsListInput

type ExtensionsListInput struct {
	Name   string
	Query  string
	Limit  int
	Offset int
	Output string
}

type ExtensionsService

type ExtensionsService interface {
	List(ctx context.Context, query kernel.ExtensionListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.ExtensionListResponse], err error)
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.ExtensionGetResponse, err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	Download(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *http.Response, err error)
	DownloadFromChromeStore(ctx context.Context, query kernel.ExtensionDownloadFromChromeStoreParams, opts ...option.RequestOption) (res *http.Response, err error)
	Upload(ctx context.Context, body kernel.ExtensionUploadParams, opts ...option.RequestOption) (res *kernel.ExtensionUploadResponse, err error)
}

ExtensionsService defines the subset of the Kernel SDK extension client that we use.

type ExtensionsUploadInput

type ExtensionsUploadInput struct {
	Dir    string
	Name   string
	Output string
}

type Int64Flag added in v0.14.0

type Int64Flag struct {
	Set   bool
	Value int64
}

Int64Flag captures whether an int64 flag was set explicitly and its value.

type JWTClaims

type JWTClaims struct {
	Sub     string `json:"sub"`      // User ID
	Email   string `json:"email"`    // User email
	Exp     int64  `json:"exp"`      // Expiration time
	Iss     string `json:"iss"`      // Issuer
	OrgID   string `json:"org_id"`   // Organization ID
	OrgName string `json:"org_name"` // Organization name
}

JWTClaims represents the claims in a JWT token

type Metadata

type Metadata struct {
	Version   string
	Commit    string
	Date      string
	GoVersion string
}

type OrgCmd added in v0.25.0

type OrgCmd struct {
	// contains filtered or unexported fields
}

func (OrgCmd) Entitlements added in v0.32.0

func (c OrgCmd) Entitlements(ctx context.Context, in OrgEntitlementsInput) error

func (OrgCmd) LimitsGet added in v0.25.0

func (c OrgCmd) LimitsGet(ctx context.Context, in OrgLimitsGetInput) error

func (OrgCmd) LimitsSet added in v0.25.0

func (c OrgCmd) LimitsSet(ctx context.Context, in OrgLimitsSetInput) error

type OrgEntitlementsInput added in v0.32.0

type OrgEntitlementsInput struct {
	Output string
}

type OrgEntitlementsService added in v0.32.0

type OrgEntitlementsService interface {
	Get(ctx context.Context, opts ...option.RequestOption) (res *kernel.OrgEntitlements, err error)
}

OrgEntitlementsService defines the organization entitlements operation used by the CLI.

type OrgLimitsGetInput added in v0.25.0

type OrgLimitsGetInput struct {
	Output string
}

type OrgLimitsService added in v0.25.0

type OrgLimitsService interface {
	Get(ctx context.Context, opts ...option.RequestOption) (res *kernel.OrgLimits, err error)
	Update(ctx context.Context, body kernel.OrganizationLimitUpdateParams, opts ...option.RequestOption) (res *kernel.OrgLimits, err error)
}

OrgLimitsService defines the subset of the Kernel SDK organization limits client that we use.

type OrgLimitsSetInput added in v0.25.0

type OrgLimitsSetInput struct {
	DefaultProjectMaxConcurrentSessions Int64Flag
	Output                              string
}

type ProfilesCmd

type ProfilesCmd struct {
	// contains filtered or unexported fields
}

ProfilesCmd handles profile operations independent of cobra.

func (ProfilesCmd) Create

func (ProfilesCmd) Delete

func (ProfilesCmd) Download

func (ProfilesCmd) Get

func (ProfilesCmd) List

func (ProfilesCmd) Update added in v0.25.0

type ProfilesCreateInput

type ProfilesCreateInput struct {
	Name   string
	Output string
}

type ProfilesDeleteInput

type ProfilesDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type ProfilesDownloadInput

type ProfilesDownloadInput struct {
	Identifier string
	To         string
	Format     string
}

type ProfilesGetInput

type ProfilesGetInput struct {
	Identifier string
	Output     string
}

type ProfilesListInput added in v0.13.3

type ProfilesListInput struct {
	Output  string
	Page    int
	PerPage int
	Name    string
	Query   string
}

type ProfilesService

type ProfilesService interface {
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Profile, err error)
	List(ctx context.Context, query kernel.ProfileListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.Profile], err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
	New(ctx context.Context, body kernel.ProfileNewParams, opts ...option.RequestOption) (res *kernel.Profile, err error)
	Update(ctx context.Context, idOrName string, body kernel.ProfileUpdateParams, opts ...option.RequestOption) (res *kernel.Profile, err error)
	Download(ctx context.Context, idOrName string, query kernel.ProfileDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)
}

ProfilesService defines the subset of the Kernel SDK profile client that we use.

type ProfilesUpdateInput added in v0.25.0

type ProfilesUpdateInput struct {
	Identifier string
	Name       string
	Output     string
}

type ProjectLimitsService added in v0.17.0

type ProjectLimitsService interface {
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.ProjectLimits, err error)
	Update(ctx context.Context, idOrName string, body kernel.ProjectLimitUpdateParams, opts ...option.RequestOption) (res *kernel.ProjectLimits, err error)
}

type ProjectListService added in v0.17.0

type ProjectListService interface {
	List(ctx context.Context, query kernel.ProjectListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.Project], err error)
}

type ProjectsCmd added in v0.17.0

type ProjectsCmd struct {
	// contains filtered or unexported fields
}

func (ProjectsCmd) Create added in v0.17.0

func (ProjectsCmd) Delete added in v0.17.0

func (ProjectsCmd) Get added in v0.17.0

func (ProjectsCmd) LimitsGet added in v0.17.0

func (ProjectsCmd) LimitsSet added in v0.17.0

func (ProjectsCmd) List added in v0.17.0

func (ProjectsCmd) Update added in v0.25.0

type ProjectsCreateInput added in v0.17.0

type ProjectsCreateInput struct {
	Name string
}

type ProjectsDeleteInput added in v0.17.0

type ProjectsDeleteInput struct {
	Identifier string
}

type ProjectsGetInput added in v0.17.0

type ProjectsGetInput struct {
	Identifier string
}

type ProjectsLimitsGetInput added in v0.17.0

type ProjectsLimitsGetInput struct {
	Identifier string
	Output     string
}

type ProjectsLimitsSetInput added in v0.17.0

type ProjectsLimitsSetInput struct {
	Identifier               string
	MaxConcurrentSessions    Int64Flag
	MaxConcurrentInvocations Int64Flag
	MaxPooledSessions        Int64Flag
	Output                   string
}

type ProjectsListInput added in v0.17.0

type ProjectsListInput struct {
	Limit  int
	Offset int
	Name   string
	Query  string
	Output string
}

type ProjectsService added in v0.17.0

type ProjectsService interface {
	ProjectListService
	New(ctx context.Context, body kernel.ProjectNewParams, opts ...option.RequestOption) (res *kernel.Project, err error)
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Project, err error)
	Update(ctx context.Context, idOrName string, body kernel.ProjectUpdateParams, opts ...option.RequestOption) (res *kernel.Project, err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
}

type ProjectsUpdateInput added in v0.25.0

type ProjectsUpdateInput struct {
	Identifier string
	Name       string
	NameSet    bool
	Status     string
	Output     string
}

type TelemetryDestinationsCmd added in v0.30.0

type TelemetryDestinationsCmd struct {
	// contains filtered or unexported fields
}

TelemetryDestinationsCmd handles OTLP destination operations independent of cobra.

func (TelemetryDestinationsCmd) Create added in v0.30.0

func (TelemetryDestinationsCmd) Delete added in v0.30.0

func (TelemetryDestinationsCmd) Get added in v0.30.0

func (TelemetryDestinationsCmd) List added in v0.30.0

func (TelemetryDestinationsCmd) Update added in v0.30.0

type TelemetryDestinationsCreateInput added in v0.30.0

type TelemetryDestinationsCreateInput struct {
	Name        string
	Endpoint    string
	Description string
	Headers     map[string]string
	Output      string
}

type TelemetryDestinationsDeleteInput added in v0.30.0

type TelemetryDestinationsDeleteInput struct {
	Identifier  string
	SkipConfirm bool
}

type TelemetryDestinationsGetInput added in v0.30.0

type TelemetryDestinationsGetInput struct {
	Identifier string
	Output     string
}

type TelemetryDestinationsListInput added in v0.30.0

type TelemetryDestinationsListInput struct {
	Page    int
	PerPage int
	Name    string
	Query   string
	Output  string
}

type TelemetryDestinationsService added in v0.30.0

type TelemetryDestinationsService interface {
	New(ctx context.Context, body kernel.TelemetryDestinationNewParams, opts ...option.RequestOption) (res *kernel.OtlpDestination, err error)
	Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.OtlpDestination, err error)
	Update(ctx context.Context, idOrName string, body kernel.TelemetryDestinationUpdateParams, opts ...option.RequestOption) (res *kernel.OtlpDestination, err error)
	List(ctx context.Context, query kernel.TelemetryDestinationListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.OtlpDestination], err error)
	Delete(ctx context.Context, idOrName string, opts ...option.RequestOption) (err error)
}

TelemetryDestinationsService defines the subset of the Kernel SDK OTLP destination client that we use.

type TelemetryDestinationsUpdateInput added in v0.30.0

type TelemetryDestinationsUpdateInput struct {
	Identifier string
	// Nil means "leave as it is"; a non-nil empty Description clears it.
	Name        *string
	Endpoint    *string
	Description *string
	// Headers adds or replaces individual headers; RemoveHeaders deletes them.
	// Both edit the stored map key by key rather than replacing it.
	Headers       map[string]string
	RemoveHeaders []string
	Output        string
}

type UpgradeCmd added in v0.13.4

type UpgradeCmd struct {
	// contains filtered or unexported fields
}

UpgradeCmd handles the upgrade command logic, separated from cobra.

func (UpgradeCmd) Run added in v0.13.4

func (u UpgradeCmd) Run(ctx context.Context, in UpgradeInput) error

Run executes the upgrade command logic.

type UpgradeInput added in v0.13.4

type UpgradeInput struct {
	DryRun bool
}

UpgradeInput holds the input parameters for the upgrade command.

type VaultProviderConfigsCmd added in v0.36.0

type VaultProviderConfigsCmd struct {
	// contains filtered or unexported fields
}

func (VaultProviderConfigsCmd) List added in v0.36.0

func (c VaultProviderConfigsCmd) List(ctx context.Context, limit, offset int64, output string) error

type VaultsCmd added in v0.34.0

type VaultsCmd struct {
	// contains filtered or unexported fields
}

func (VaultsCmd) Create added in v0.34.0

func (c VaultsCmd) Create(ctx context.Context, name, output string) error

func (VaultsCmd) CreateWallet added in v0.34.0

func (c VaultsCmd) CreateWallet(ctx context.Context, vault, key string, spec kernel.VaultItemUpsertParamsBodyWalletSpecUnion, output string, open bool) error

func (VaultsCmd) Delete added in v0.34.0

func (c VaultsCmd) Delete(ctx context.Context, vault, key string, yes bool) error

func (VaultsCmd) Events added in v0.34.0

func (c VaultsCmd) Events(ctx context.Context, vault, key, after string, wait int64, output string) error

func (VaultsCmd) Get added in v0.34.0

func (c VaultsCmd) Get(ctx context.Context, vault, output string) error

func (VaultsCmd) GetEncryptionKey added in v0.47.0

func (c VaultsCmd) GetEncryptionKey(ctx context.Context, vault, output string) error

func (VaultsCmd) GetItem added in v0.34.0

func (c VaultsCmd) GetItem(ctx context.Context, vault, key string, wait int64, expand []string, project, output string, open bool) error

func (VaultsCmd) Invoke added in v0.34.0

func (c VaultsCmd) Invoke(ctx context.Context, vault, key, operation string, params *vaultOperationParams, output string, open bool) error

func (VaultsCmd) List added in v0.34.0

func (c VaultsCmd) List(ctx context.Context, limit, offset int64, query, project, output string) error

func (VaultsCmd) ListItems added in v0.34.0

func (c VaultsCmd) ListItems(ctx context.Context, vault, output string) error

func (VaultsCmd) SaveCard added in v0.34.0

func (c VaultsCmd) SaveCard(ctx context.Context, vault, key string, spec kernel.CardVaultItemSpecUnionParam, update bool, output string) error

func (VaultsCmd) SavePaymentRequest added in v0.51.0

func (c VaultsCmd) SavePaymentRequest(ctx context.Context, vault, key string, spec kernel.PaymentRequestVaultItemSpecUnionParam, update bool, output string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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