Documentation
¶
Index ¶
- func Execute(m Metadata)
- func PrintTableNoPad(data pterm.TableData, hasHeader bool)
- type AgentAuthCmd
- func (c AgentAuthCmd) Create(ctx context.Context, in AgentAuthCreateInput) error
- func (c AgentAuthCmd) Delete(ctx context.Context, in AgentAuthDeleteInput) error
- func (c AgentAuthCmd) Get(ctx context.Context, in AgentAuthGetInput) error
- func (c AgentAuthCmd) InvocationCreate(ctx context.Context, in AgentAuthInvocationCreateInput) error
- func (c AgentAuthCmd) InvocationExchange(ctx context.Context, in AgentAuthInvocationExchangeInput) error
- func (c AgentAuthCmd) InvocationGet(ctx context.Context, in AgentAuthInvocationGetInput) error
- func (c AgentAuthCmd) InvocationSubmit(ctx context.Context, in AgentAuthInvocationSubmitInput) error
- func (c AgentAuthCmd) List(ctx context.Context, in AgentAuthListInput) error
- type AgentAuthCreateInput
- type AgentAuthDeleteInput
- type AgentAuthGetInput
- type AgentAuthInvocationCreateInput
- type AgentAuthInvocationExchangeInput
- type AgentAuthInvocationGetInput
- type AgentAuthInvocationSubmitInput
- type AgentAuthInvocationsService
- type AgentAuthListInput
- type AgentAuthRunCmd
- type AgentAuthRunEvent
- type AgentAuthRunInput
- type AgentAuthRunResult
- type AgentAuthService
- type BoolFlag
- type BrowserComputerService
- type BrowserFSService
- type BrowserFWatchService
- type BrowserLogService
- type BrowserPlaywrightService
- type BrowserPoolsAcquireInput
- type BrowserPoolsCmd
- func (c BrowserPoolsCmd) Acquire(ctx context.Context, in BrowserPoolsAcquireInput) error
- func (c BrowserPoolsCmd) Create(ctx context.Context, in BrowserPoolsCreateInput) error
- func (c BrowserPoolsCmd) Delete(ctx context.Context, in BrowserPoolsDeleteInput) error
- func (c BrowserPoolsCmd) Flush(ctx context.Context, in BrowserPoolsFlushInput) error
- func (c BrowserPoolsCmd) Get(ctx context.Context, in BrowserPoolsGetInput) error
- func (c BrowserPoolsCmd) List(ctx context.Context, in BrowserPoolsListInput) error
- func (c BrowserPoolsCmd) Release(ctx context.Context, in BrowserPoolsReleaseInput) error
- func (c BrowserPoolsCmd) Update(ctx context.Context, in BrowserPoolsUpdateInput) error
- type BrowserPoolsCreateInput
- type BrowserPoolsDeleteInput
- type BrowserPoolsFlushInput
- type BrowserPoolsGetInput
- type BrowserPoolsListInput
- type BrowserPoolsReleaseInput
- type BrowserPoolsService
- type BrowserPoolsUpdateInput
- type BrowserProcessService
- type BrowserReplaysService
- type BrowsersCmd
- func (b BrowsersCmd) ComputerClickMouse(ctx context.Context, in BrowsersComputerClickMouseInput) error
- func (b BrowsersCmd) ComputerDragMouse(ctx context.Context, in BrowsersComputerDragMouseInput) error
- func (b BrowsersCmd) ComputerMoveMouse(ctx context.Context, in BrowsersComputerMoveMouseInput) error
- func (b BrowsersCmd) ComputerPressKey(ctx context.Context, in BrowsersComputerPressKeyInput) error
- func (b BrowsersCmd) ComputerScreenshot(ctx context.Context, in BrowsersComputerScreenshotInput) error
- func (b BrowsersCmd) ComputerScroll(ctx context.Context, in BrowsersComputerScrollInput) error
- func (b BrowsersCmd) ComputerSetCursor(ctx context.Context, in BrowsersComputerSetCursorInput) error
- func (b BrowsersCmd) ComputerTypeText(ctx context.Context, in BrowsersComputerTypeTextInput) error
- func (b BrowsersCmd) Create(ctx context.Context, in BrowsersCreateInput) error
- func (b BrowsersCmd) Delete(ctx context.Context, in BrowsersDeleteInput) error
- func (b BrowsersCmd) ExtensionsUpload(ctx context.Context, in BrowsersExtensionsUploadInput) error
- func (b BrowsersCmd) FSDeleteDirectory(ctx context.Context, in BrowsersFSDeleteDirInput) error
- func (b BrowsersCmd) FSDeleteFile(ctx context.Context, in BrowsersFSDeleteFileInput) error
- func (b BrowsersCmd) FSDownloadDirZip(ctx context.Context, in BrowsersFSDownloadDirZipInput) error
- func (b BrowsersCmd) FSFileInfo(ctx context.Context, in BrowsersFSFileInfoInput) error
- func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error
- func (b BrowsersCmd) FSMove(ctx context.Context, in BrowsersFSMoveInput) error
- func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error
- func (b BrowsersCmd) FSReadFile(ctx context.Context, in BrowsersFSReadFileInput) error
- func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error
- func (b BrowsersCmd) FSUpload(ctx context.Context, in BrowsersFSUploadInput) error
- func (b BrowsersCmd) FSUploadZip(ctx context.Context, in BrowsersFSUploadZipInput) error
- func (b BrowsersCmd) FSWatchEvents(ctx context.Context, in BrowsersFSWatchEventsInput) error
- func (b BrowsersCmd) FSWatchStart(ctx context.Context, in BrowsersFSWatchStartInput) error
- func (b BrowsersCmd) FSWatchStop(ctx context.Context, in BrowsersFSWatchStopInput) error
- func (b BrowsersCmd) FSWriteFile(ctx context.Context, in BrowsersFSWriteFileInput) error
- func (b BrowsersCmd) Get(ctx context.Context, in BrowsersGetInput) error
- func (b BrowsersCmd) List(ctx context.Context, in BrowsersListInput) error
- func (b BrowsersCmd) LogsStream(ctx context.Context, in BrowsersLogsStreamInput) error
- func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) error
- func (b BrowsersCmd) ProcessExec(ctx context.Context, in BrowsersProcessExecInput) error
- func (b BrowsersCmd) ProcessKill(ctx context.Context, in BrowsersProcessKillInput) error
- func (b BrowsersCmd) ProcessResize(ctx context.Context, in BrowsersProcessResizeInput) error
- func (b BrowsersCmd) ProcessSpawn(ctx context.Context, in BrowsersProcessSpawnInput) error
- func (b BrowsersCmd) ProcessStatus(ctx context.Context, in BrowsersProcessStatusInput) error
- func (b BrowsersCmd) ProcessStdin(ctx context.Context, in BrowsersProcessStdinInput) error
- func (b BrowsersCmd) ProcessStdoutStream(ctx context.Context, in BrowsersProcessStdoutStreamInput) error
- func (b BrowsersCmd) ReplaysDownload(ctx context.Context, in BrowsersReplaysDownloadInput) error
- func (b BrowsersCmd) ReplaysList(ctx context.Context, in BrowsersReplaysListInput) error
- func (b BrowsersCmd) ReplaysStart(ctx context.Context, in BrowsersReplaysStartInput) error
- func (b BrowsersCmd) ReplaysStop(ctx context.Context, in BrowsersReplaysStopInput) error
- func (b BrowsersCmd) Update(ctx context.Context, in BrowsersUpdateInput) error
- func (b BrowsersCmd) View(ctx context.Context, in BrowsersViewInput) error
- type BrowsersComputerClickMouseInput
- type BrowsersComputerDragMouseInput
- type BrowsersComputerMoveMouseInput
- type BrowsersComputerPressKeyInput
- type BrowsersComputerScreenshotInput
- type BrowsersComputerScrollInput
- type BrowsersComputerSetCursorInput
- type BrowsersComputerTypeTextInput
- type BrowsersCreateInput
- type BrowsersDeleteInput
- type BrowsersExtensionsUploadInput
- type BrowsersFSDeleteDirInput
- type BrowsersFSDeleteFileInput
- type BrowsersFSDownloadDirZipInput
- type BrowsersFSFileInfoInput
- type BrowsersFSListFilesInput
- type BrowsersFSMoveInput
- type BrowsersFSNewDirInput
- type BrowsersFSReadFileInput
- type BrowsersFSSetPermsInput
- type BrowsersFSUploadInput
- type BrowsersFSUploadZipInput
- type BrowsersFSWatchEventsInput
- type BrowsersFSWatchStartInput
- type BrowsersFSWatchStopInput
- type BrowsersFSWriteFileInput
- type BrowsersGetInput
- type BrowsersListInput
- type BrowsersLogsStreamInput
- type BrowsersPlaywrightExecuteInput
- type BrowsersProcessExecInput
- type BrowsersProcessKillInput
- type BrowsersProcessResizeInput
- type BrowsersProcessSpawnInput
- type BrowsersProcessStatusInput
- type BrowsersProcessStdinInput
- type BrowsersProcessStdoutStreamInput
- type BrowsersReplaysDownloadInput
- type BrowsersReplaysListInput
- type BrowsersReplaysStartInput
- type BrowsersReplaysStopInput
- type BrowsersService
- type BrowsersUpdateInput
- type BrowsersViewInput
- type CreateCmd
- type CredentialProvidersCmd
- func (c CredentialProvidersCmd) Create(ctx context.Context, in CredentialProvidersCreateInput) error
- func (c CredentialProvidersCmd) Delete(ctx context.Context, in CredentialProvidersDeleteInput) error
- func (c CredentialProvidersCmd) Get(ctx context.Context, in CredentialProvidersGetInput) error
- func (c CredentialProvidersCmd) List(ctx context.Context, in CredentialProvidersListInput) error
- func (c CredentialProvidersCmd) Test(ctx context.Context, in CredentialProvidersTestInput) error
- func (c CredentialProvidersCmd) Update(ctx context.Context, in CredentialProvidersUpdateInput) error
- type CredentialProvidersCreateInput
- type CredentialProvidersDeleteInput
- type CredentialProvidersGetInput
- type CredentialProvidersListInput
- type CredentialProvidersService
- type CredentialProvidersTestInput
- type CredentialProvidersUpdateInput
- type CredentialsCmd
- func (c CredentialsCmd) Create(ctx context.Context, in CredentialsCreateInput) error
- func (c CredentialsCmd) Delete(ctx context.Context, in CredentialsDeleteInput) error
- func (c CredentialsCmd) Get(ctx context.Context, in CredentialsGetInput) error
- func (c CredentialsCmd) List(ctx context.Context, in CredentialsListInput) error
- func (c CredentialsCmd) TotpCode(ctx context.Context, in CredentialsTotpCodeInput) error
- func (c CredentialsCmd) Update(ctx context.Context, in CredentialsUpdateInput) error
- type CredentialsCreateInput
- type CredentialsDeleteInput
- type CredentialsGetInput
- type CredentialsListInput
- type CredentialsService
- type CredentialsTotpCodeInput
- type CredentialsUpdateInput
- type ExtensionsCmd
- func (e ExtensionsCmd) Delete(ctx context.Context, in ExtensionsDeleteInput) error
- func (e ExtensionsCmd) Download(ctx context.Context, in ExtensionsDownloadInput) error
- func (e ExtensionsCmd) DownloadWebStore(ctx context.Context, in ExtensionsDownloadWebStoreInput) error
- func (e ExtensionsCmd) List(ctx context.Context, in ExtensionsListInput) error
- func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) error
- type ExtensionsDeleteInput
- type ExtensionsDownloadInput
- type ExtensionsDownloadWebStoreInput
- type ExtensionsListInput
- type ExtensionsService
- type ExtensionsUploadInput
- type Int64Flag
- type JWTClaims
- type Metadata
- type ProfilesCmd
- func (p ProfilesCmd) Create(ctx context.Context, in ProfilesCreateInput) error
- func (p ProfilesCmd) Delete(ctx context.Context, in ProfilesDeleteInput) error
- func (p ProfilesCmd) Download(ctx context.Context, in ProfilesDownloadInput) error
- func (p ProfilesCmd) Get(ctx context.Context, in ProfilesGetInput) error
- func (p ProfilesCmd) List(ctx context.Context, in ProfilesListInput) error
- type ProfilesCreateInput
- type ProfilesDeleteInput
- type ProfilesDownloadInput
- type ProfilesGetInput
- type ProfilesListInput
- type ProfilesService
- type UpgradeCmd
- type UpgradeInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintTableNoPad ¶
PrintTableNoPad is a wrapper around pkg/table.PrintTableNoPad for backwards compatibility
Types ¶
type AgentAuthCmd ¶ added in v0.14.0
type AgentAuthCmd struct {
// contains filtered or unexported fields
}
AgentAuthCmd handles agent auth operations independent of cobra.
func (AgentAuthCmd) Create ¶ added in v0.14.0
func (c AgentAuthCmd) Create(ctx context.Context, in AgentAuthCreateInput) error
func (AgentAuthCmd) Delete ¶ added in v0.14.0
func (c AgentAuthCmd) Delete(ctx context.Context, in AgentAuthDeleteInput) error
func (AgentAuthCmd) Get ¶ added in v0.14.0
func (c AgentAuthCmd) Get(ctx context.Context, in AgentAuthGetInput) error
func (AgentAuthCmd) InvocationCreate ¶ added in v0.14.0
func (c AgentAuthCmd) InvocationCreate(ctx context.Context, in AgentAuthInvocationCreateInput) error
func (AgentAuthCmd) InvocationExchange ¶ added in v0.14.0
func (c AgentAuthCmd) InvocationExchange(ctx context.Context, in AgentAuthInvocationExchangeInput) error
func (AgentAuthCmd) InvocationGet ¶ added in v0.14.0
func (c AgentAuthCmd) InvocationGet(ctx context.Context, in AgentAuthInvocationGetInput) error
func (AgentAuthCmd) InvocationSubmit ¶ added in v0.14.0
func (c AgentAuthCmd) InvocationSubmit(ctx context.Context, in AgentAuthInvocationSubmitInput) error
func (AgentAuthCmd) List ¶ added in v0.14.0
func (c AgentAuthCmd) List(ctx context.Context, in AgentAuthListInput) error
type AgentAuthCreateInput ¶ added in v0.14.0
type AgentAuthDeleteInput ¶ added in v0.14.0
type AgentAuthGetInput ¶ added in v0.14.0
type AgentAuthInvocationCreateInput ¶ added in v0.14.0
type AgentAuthInvocationExchangeInput ¶ added in v0.14.0
type AgentAuthInvocationGetInput ¶ added in v0.14.0
type AgentAuthInvocationSubmitInput ¶ added in v0.14.0
type AgentAuthInvocationsService ¶ added in v0.14.0
type AgentAuthInvocationsService interface {
New(ctx context.Context, body kernel.AgentAuthInvocationNewParams, opts ...option.RequestOption) (res *kernel.AuthAgentInvocationCreateResponse, err error)
Get(ctx context.Context, invocationID string, opts ...option.RequestOption) (res *kernel.AgentAuthInvocationResponse, err error)
Exchange(ctx context.Context, invocationID string, body kernel.AgentAuthInvocationExchangeParams, opts ...option.RequestOption) (res *kernel.AgentAuthInvocationExchangeResponse, err error)
Submit(ctx context.Context, invocationID string, body kernel.AgentAuthInvocationSubmitParams, opts ...option.RequestOption) (res *kernel.AgentAuthSubmitResponse, err error)
}
AgentAuthInvocationsService defines the subset of the Kernel SDK agent auth invocations client that we use.
type AgentAuthListInput ¶ added in v0.14.0
type AgentAuthRunCmd ¶ added in v0.14.0
type AgentAuthRunCmd struct {
// contains filtered or unexported fields
}
AgentAuthRunCmd handles the automated auth run flow.
func (AgentAuthRunCmd) Run ¶ added in v0.14.0
func (c AgentAuthRunCmd) Run(ctx context.Context, in AgentAuthRunInput) error
Run executes the full automated auth flow: create profile, credential, auth agent, and run invocation to completion.
type AgentAuthRunEvent ¶ added in v0.14.0
type AgentAuthRunEvent struct {
Type string `json:"type"` // status, error, success, waiting
Step string `json:"step,omitempty"`
Status string `json:"status,omitempty"`
Message string `json:"message,omitempty"`
LiveViewURL string `json:"live_view_url,omitempty"`
}
AgentAuthRunEvent represents a status update during the auth run (for JSON output).
type AgentAuthRunInput ¶ added in v0.14.0
type AgentAuthRunInput struct {
Domain string
ProfileName string
Values map[string]string
CredentialName string
SaveCredentialAs string
TotpSecret string
ProxyID string
LoginURL string
AllowedDomains []string
Timeout time.Duration
OpenLiveView bool
Output string
}
AgentAuthRunInput contains all parameters for the automated auth run flow.
type AgentAuthRunResult ¶ added in v0.14.0
type AgentAuthRunResult struct {
ProfileName string `json:"profile_name"`
ProfileID string `json:"profile_id"`
Domain string `json:"domain"`
AuthAgentID string `json:"auth_agent_id"`
}
AgentAuthRunResult is the result of a successful auth run.
type AgentAuthService ¶ added in v0.14.0
type AgentAuthService interface {
New(ctx context.Context, body kernel.AgentAuthNewParams, opts ...option.RequestOption) (res *kernel.AuthAgent, err error)
Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.AuthAgent, err error)
List(ctx context.Context, query kernel.AgentAuthListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.AuthAgent], err error)
Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
}
AgentAuthService defines the subset of the Kernel SDK agent auth client that we use.
type BrowserComputerService ¶
type BrowserComputerService interface {
CaptureScreenshot(ctx context.Context, id string, body kernel.BrowserComputerCaptureScreenshotParams, opts ...option.RequestOption) (res *http.Response, err error)
ClickMouse(ctx context.Context, id string, body kernel.BrowserComputerClickMouseParams, opts ...option.RequestOption) (err error)
DragMouse(ctx context.Context, id string, body kernel.BrowserComputerDragMouseParams, opts ...option.RequestOption) (err error)
MoveMouse(ctx context.Context, id string, body kernel.BrowserComputerMoveMouseParams, opts ...option.RequestOption) (err error)
PressKey(ctx context.Context, id string, body kernel.BrowserComputerPressKeyParams, opts ...option.RequestOption) (err error)
Scroll(ctx context.Context, id string, body kernel.BrowserComputerScrollParams, opts ...option.RequestOption) (err error)
SetCursorVisibility(ctx context.Context, id string, body kernel.BrowserComputerSetCursorVisibilityParams, opts ...option.RequestOption) (res *kernel.BrowserComputerSetCursorVisibilityResponse, err error)
TypeText(ctx context.Context, id string, body kernel.BrowserComputerTypeTextParams, 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, id string, body kernel.BrowserFNewDirectoryParams, opts ...option.RequestOption) (err error)
DeleteDirectory(ctx context.Context, id string, body kernel.BrowserFDeleteDirectoryParams, opts ...option.RequestOption) (err error)
DeleteFile(ctx context.Context, id string, body kernel.BrowserFDeleteFileParams, opts ...option.RequestOption) (err error)
DownloadDirZip(ctx context.Context, id string, query kernel.BrowserFDownloadDirZipParams, opts ...option.RequestOption) (res *http.Response, err error)
FileInfo(ctx context.Context, id string, query kernel.BrowserFFileInfoParams, opts ...option.RequestOption) (res *kernel.BrowserFFileInfoResponse, err error)
ListFiles(ctx context.Context, id string, query kernel.BrowserFListFilesParams, opts ...option.RequestOption) (res *[]kernel.BrowserFListFilesResponse, err error)
Move(ctx context.Context, id string, body kernel.BrowserFMoveParams, opts ...option.RequestOption) (err error)
ReadFile(ctx context.Context, id string, query kernel.BrowserFReadFileParams, opts ...option.RequestOption) (res *http.Response, err error)
SetFilePermissions(ctx context.Context, id string, body kernel.BrowserFSetFilePermissionsParams, opts ...option.RequestOption) (err error)
Upload(ctx context.Context, id string, body kernel.BrowserFUploadParams, opts ...option.RequestOption) (err error)
UploadZip(ctx context.Context, id string, body kernel.BrowserFUploadZipParams, opts ...option.RequestOption) (err error)
WriteFile(ctx context.Context, id 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, id 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, id string, query kernel.BrowserLogStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[shared.LogEvent])
}
BrowserLogService defines the subset we use for browser log APIs.
type BrowserPlaywrightService ¶
type BrowserPlaywrightService interface {
Execute(ctx context.Context, id string, body kernel.BrowserPlaywrightExecuteParams, opts ...option.RequestOption) (res *kernel.BrowserPlaywrightExecuteResponse, err error)
}
BrowserPlaywrightService defines the subset we use for Playwright execution.
type BrowserPoolsCmd ¶
type BrowserPoolsCmd struct {
// contains filtered or unexported fields
}
func (BrowserPoolsCmd) Acquire ¶
func (c BrowserPoolsCmd) Acquire(ctx context.Context, in BrowserPoolsAcquireInput) error
func (BrowserPoolsCmd) Create ¶
func (c BrowserPoolsCmd) Create(ctx context.Context, in BrowserPoolsCreateInput) error
func (BrowserPoolsCmd) Delete ¶
func (c BrowserPoolsCmd) Delete(ctx context.Context, in BrowserPoolsDeleteInput) error
func (BrowserPoolsCmd) Flush ¶
func (c BrowserPoolsCmd) Flush(ctx context.Context, in BrowserPoolsFlushInput) error
func (BrowserPoolsCmd) Get ¶
func (c BrowserPoolsCmd) Get(ctx context.Context, in BrowserPoolsGetInput) error
func (BrowserPoolsCmd) List ¶
func (c BrowserPoolsCmd) List(ctx context.Context, in BrowserPoolsListInput) error
func (BrowserPoolsCmd) Release ¶
func (c BrowserPoolsCmd) Release(ctx context.Context, in BrowserPoolsReleaseInput) error
func (BrowserPoolsCmd) Update ¶
func (c BrowserPoolsCmd) Update(ctx context.Context, in BrowserPoolsUpdateInput) error
type BrowserPoolsCreateInput ¶
type BrowserPoolsDeleteInput ¶
type BrowserPoolsFlushInput ¶
type BrowserPoolsFlushInput struct {
IDOrName string
}
type BrowserPoolsGetInput ¶
type BrowserPoolsListInput ¶
type BrowserPoolsListInput struct {
Output string
}
type BrowserPoolsService ¶
type BrowserPoolsService interface {
List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.BrowserPool, err error)
New(ctx context.Context, body kernel.BrowserPoolNewParams, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
Update(ctx context.Context, id string, body kernel.BrowserPoolUpdateParams, opts ...option.RequestOption) (res *kernel.BrowserPool, err error)
Delete(ctx context.Context, id string, body kernel.BrowserPoolDeleteParams, opts ...option.RequestOption) (err error)
Acquire(ctx context.Context, id string, body kernel.BrowserPoolAcquireParams, opts ...option.RequestOption) (res *kernel.BrowserPoolAcquireResponse, err error)
Release(ctx context.Context, id string, body kernel.BrowserPoolReleaseParams, opts ...option.RequestOption) (err error)
Flush(ctx context.Context, id string, opts ...option.RequestOption) (err error)
}
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 int64
TimeoutSeconds int64
Stealth BoolFlag
Headless BoolFlag
Kiosk BoolFlag
ProfileID string
ProfileName string
ProfileSaveChanges BoolFlag
ProxyID string
Extensions []string
Viewport string
DiscardAllIdle BoolFlag
Output string
}
type BrowserProcessService ¶
type BrowserProcessService interface {
Exec(ctx context.Context, id string, body kernel.BrowserProcessExecParams, opts ...option.RequestOption) (res *kernel.BrowserProcessExecResponse, err error)
Kill(ctx context.Context, processID string, params kernel.BrowserProcessKillParams, opts ...option.RequestOption) (res *kernel.BrowserProcessKillResponse, err error)
Resize(ctx context.Context, processID string, params kernel.BrowserProcessResizeParams, opts ...option.RequestOption) (res *kernel.BrowserProcessResizeResponse, err error)
Spawn(ctx context.Context, id string, body kernel.BrowserProcessSpawnParams, opts ...option.RequestOption) (res *kernel.BrowserProcessSpawnResponse, err error)
Status(ctx context.Context, processID string, query kernel.BrowserProcessStatusParams, opts ...option.RequestOption) (res *kernel.BrowserProcessStatusResponse, err error)
Stdin(ctx context.Context, processID string, params kernel.BrowserProcessStdinParams, opts ...option.RequestOption) (res *kernel.BrowserProcessStdinResponse, err error)
StdoutStreamStreaming(ctx context.Context, processID string, query kernel.BrowserProcessStdoutStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[kernel.BrowserProcessStdoutStreamResponse])
}
BrowserProcessService defines the subset we use for browser process APIs.
type BrowserReplaysService ¶
type BrowserReplaysService interface {
List(ctx context.Context, id 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, id 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 BrowsersCmd ¶
type BrowsersCmd struct {
// contains filtered or unexported fields
}
BrowsersCmd is a cobra-independent command handler for browsers operations.
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) 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) 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) Create ¶
func (b BrowsersCmd) Create(ctx context.Context, in BrowsersCreateInput) error
func (BrowsersCmd) Delete ¶
func (b BrowsersCmd) Delete(ctx context.Context, in BrowsersDeleteInput) error
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 (b BrowsersCmd) FSFileInfo(ctx context.Context, in BrowsersFSFileInfoInput) error
func (BrowsersCmd) FSListFiles ¶
func (b BrowsersCmd) FSListFiles(ctx context.Context, in BrowsersFSListFilesInput) error
func (BrowsersCmd) FSMove ¶
func (b BrowsersCmd) FSMove(ctx context.Context, in BrowsersFSMoveInput) error
func (BrowsersCmd) FSNewDirectory ¶
func (b BrowsersCmd) FSNewDirectory(ctx context.Context, in BrowsersFSNewDirInput) error
func (BrowsersCmd) FSReadFile ¶
func (b BrowsersCmd) FSReadFile(ctx context.Context, in BrowsersFSReadFileInput) error
func (BrowsersCmd) FSSetPermissions ¶
func (b BrowsersCmd) FSSetPermissions(ctx context.Context, in BrowsersFSSetPermsInput) error
func (BrowsersCmd) FSUpload ¶
func (b BrowsersCmd) FSUpload(ctx context.Context, in BrowsersFSUploadInput) error
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 (b BrowsersCmd) Get(ctx context.Context, in BrowsersGetInput) error
func (BrowsersCmd) List ¶
func (b BrowsersCmd) List(ctx context.Context, in BrowsersListInput) error
func (BrowsersCmd) LogsStream ¶
func (b BrowsersCmd) LogsStream(ctx context.Context, in BrowsersLogsStreamInput) error
func (BrowsersCmd) PlaywrightExecute ¶
func (b BrowsersCmd) PlaywrightExecute(ctx context.Context, in BrowsersPlaywrightExecuteInput) 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) 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) Update ¶ added in v0.13.5
func (b BrowsersCmd) Update(ctx context.Context, in BrowsersUpdateInput) error
func (BrowsersCmd) View ¶
func (b BrowsersCmd) View(ctx context.Context, in BrowsersViewInput) error
type BrowsersComputerClickMouseInput ¶
type BrowsersComputerClickMouseInput struct {
Identifier string
X int64
Y int64
NumClicks int64
Button string
ClickType string
HoldKeys []string
}
Computer (mouse/screen)
type BrowsersCreateInput ¶
type BrowsersCreateInput struct {
PersistenceID string
TimeoutSeconds int
Stealth BoolFlag
Headless BoolFlag
Kiosk BoolFlag
ProfileID string
ProfileName string
ProfileSaveChanges BoolFlag
ProxyID string
Extensions []string
Viewport string
Output string
}
Inputs for each command
type BrowsersDeleteInput ¶
type BrowsersDeleteInput struct {
Identifier string
}
type BrowsersFSFileInfoInput ¶
type BrowsersFSMoveInput ¶
type BrowsersFSNewDirInput ¶
FS (minimal scaffolding)
type BrowsersFSReadFileInput ¶
type BrowsersFSSetPermsInput ¶
type BrowsersFSUploadInput ¶
type BrowsersFSUploadInput struct {
Identifier string
Mappings []struct {
Local string
Dest string
}
DestDir string
Paths []string
}
Upload inputs
type BrowsersFSWatchEventsInput ¶ added in v0.14.0
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 BrowsersGetInput ¶
type BrowsersListInput ¶
type BrowsersLogsStreamInput ¶
type BrowsersLogsStreamInput struct {
Identifier string
Source string
Follow BoolFlag
Path string
SupervisorProcess string
}
Logs
type BrowsersPlaywrightExecuteInput ¶
Playwright
type BrowsersProcessExecInput ¶
type BrowsersProcessExecInput struct {
Identifier string
Command string
Args []string
Cwd string
Timeout int
AsUser string
AsRoot BoolFlag
Output string
}
Process
type BrowsersProcessResizeInput ¶ added in v0.14.0
type BrowsersReplaysListInput ¶
Replays
type BrowsersService ¶
type BrowsersService interface {
Get(ctx context.Context, id 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, id string, body kernel.BrowserUpdateParams, opts ...option.RequestOption) (res *kernel.BrowserUpdateResponse, err error)
Delete(ctx context.Context, body kernel.BrowserDeleteParams, opts ...option.RequestOption) (err error)
DeleteByID(ctx context.Context, id string, opts ...option.RequestOption) (err error)
LoadExtensions(ctx context.Context, id string, body kernel.BrowserLoadExtensionsParams, opts ...option.RequestOption) (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 BrowsersUpdateInput ¶ added in v0.13.5
type BrowsersViewInput ¶
type CreateCmd ¶
type CreateCmd struct{}
CreateCmd is a cobra-independent command handler for create operations
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 (c CredentialProvidersCmd) Create(ctx context.Context, in CredentialProvidersCreateInput) error
func (CredentialProvidersCmd) Delete ¶ added in v0.14.0
func (c CredentialProvidersCmd) Delete(ctx context.Context, in CredentialProvidersDeleteInput) error
func (CredentialProvidersCmd) Get ¶ added in v0.14.0
func (c CredentialProvidersCmd) Get(ctx context.Context, in CredentialProvidersGetInput) error
func (CredentialProvidersCmd) List ¶ added in v0.14.0
func (c CredentialProvidersCmd) List(ctx context.Context, in CredentialProvidersListInput) error
func (CredentialProvidersCmd) Test ¶ added in v0.14.0
func (c CredentialProvidersCmd) Test(ctx context.Context, in CredentialProvidersTestInput) error
func (CredentialProvidersCmd) Update ¶ added in v0.14.0
func (c CredentialProvidersCmd) Update(ctx context.Context, in CredentialProvidersUpdateInput) error
type CredentialProvidersCreateInput ¶ added in v0.14.0
type CredentialProvidersDeleteInput ¶ added in v0.14.0
type CredentialProvidersGetInput ¶ added in v0.14.0
type CredentialProvidersListInput ¶ added in v0.14.0
type CredentialProvidersListInput struct {
Output string
}
type CredentialProvidersService ¶ added in v0.14.0
type CredentialProvidersService interface {
New(ctx context.Context, body kernel.CredentialProviderNewParams, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
Update(ctx context.Context, id string, body kernel.CredentialProviderUpdateParams, opts ...option.RequestOption) (res *kernel.CredentialProvider, err error)
List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.CredentialProvider, err error)
Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Test(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.CredentialProviderTestResult, err error)
}
CredentialProvidersService defines the subset of the Kernel SDK credential provider client that we use.
type CredentialProvidersTestInput ¶ added in v0.14.0
type CredentialProvidersUpdateInput ¶ added in v0.14.0
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 (c CredentialsCmd) Create(ctx context.Context, in CredentialsCreateInput) error
func (CredentialsCmd) Delete ¶ added in v0.14.0
func (c CredentialsCmd) Delete(ctx context.Context, in CredentialsDeleteInput) error
func (CredentialsCmd) Get ¶ added in v0.14.0
func (c CredentialsCmd) Get(ctx context.Context, in CredentialsGetInput) error
func (CredentialsCmd) List ¶ added in v0.14.0
func (c CredentialsCmd) List(ctx context.Context, in CredentialsListInput) error
func (CredentialsCmd) TotpCode ¶ added in v0.14.0
func (c CredentialsCmd) TotpCode(ctx context.Context, in CredentialsTotpCodeInput) error
func (CredentialsCmd) Update ¶ added in v0.14.0
func (c CredentialsCmd) Update(ctx context.Context, in CredentialsUpdateInput) error
type CredentialsCreateInput ¶ added in v0.14.0
type CredentialsDeleteInput ¶ added in v0.14.0
type CredentialsGetInput ¶ added in v0.14.0
type CredentialsListInput ¶ added in v0.14.0
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 CredentialsUpdateInput ¶ added in v0.14.0
type ExtensionsCmd ¶
type ExtensionsCmd struct {
// contains filtered or unexported fields
}
ExtensionsCmd handles extension operations independent of cobra.
func (ExtensionsCmd) Delete ¶
func (e ExtensionsCmd) Delete(ctx context.Context, in ExtensionsDeleteInput) error
func (ExtensionsCmd) Download ¶
func (e ExtensionsCmd) Download(ctx context.Context, in ExtensionsDownloadInput) error
func (ExtensionsCmd) DownloadWebStore ¶
func (e ExtensionsCmd) DownloadWebStore(ctx context.Context, in ExtensionsDownloadWebStoreInput) error
func (ExtensionsCmd) List ¶
func (e ExtensionsCmd) List(ctx context.Context, in ExtensionsListInput) error
func (ExtensionsCmd) Upload ¶
func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) error
type ExtensionsDeleteInput ¶
type ExtensionsDownloadInput ¶
type ExtensionsListInput ¶
type ExtensionsListInput struct {
Output string
}
type ExtensionsService ¶
type ExtensionsService interface {
List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.ExtensionListResponse, 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 Int64Flag ¶ added in v0.14.0
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 ProfilesCmd ¶
type ProfilesCmd struct {
// contains filtered or unexported fields
}
ProfilesCmd handles profile operations independent of cobra.
func (ProfilesCmd) Create ¶
func (p ProfilesCmd) Create(ctx context.Context, in ProfilesCreateInput) error
func (ProfilesCmd) Delete ¶
func (p ProfilesCmd) Delete(ctx context.Context, in ProfilesDeleteInput) error
func (ProfilesCmd) Download ¶
func (p ProfilesCmd) Download(ctx context.Context, in ProfilesDownloadInput) error
func (ProfilesCmd) Get ¶
func (p ProfilesCmd) Get(ctx context.Context, in ProfilesGetInput) error
func (ProfilesCmd) List ¶
func (p ProfilesCmd) List(ctx context.Context, in ProfilesListInput) error
type ProfilesCreateInput ¶
type ProfilesDeleteInput ¶
type ProfilesDownloadInput ¶
type ProfilesGetInput ¶
type ProfilesListInput ¶ added in v0.13.3
type ProfilesListInput struct {
Output string
}
type ProfilesService ¶
type ProfilesService interface {
Get(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *kernel.Profile, err error)
List(ctx context.Context, opts ...option.RequestOption) (res *[]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)
Download(ctx context.Context, idOrName string, opts ...option.RequestOption) (res *http.Response, err error)
}
ProfilesService defines the subset of the Kernel SDK profile client that we use.
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.