proxies

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxiesCmd = &cobra.Command{
	Use:     "proxies",
	Aliases: []string{"proxy"},
	Short:   "Manage proxy configurations",
	Long:    "Commands for managing proxy configurations for browser sessions",
	Run: func(cmd *cobra.Command, args []string) {

		_ = cmd.Help()
	},
}

ProxiesCmd is the parent command for proxy operations

Functions

This section is empty.

Types

type ProxyCmd

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

ProxyCmd handles proxy operations independent of cobra.

func (ProxyCmd) Create

func (p ProxyCmd) Create(ctx context.Context, in ProxyCreateInput) error

func (ProxyCmd) Delete

func (p ProxyCmd) Delete(ctx context.Context, in ProxyDeleteInput) error

func (ProxyCmd) Get

func (p ProxyCmd) Get(ctx context.Context, in ProxyGetInput) error

func (ProxyCmd) List

func (p ProxyCmd) List(ctx context.Context) error

type ProxyCreateInput

type ProxyCreateInput struct {
	Name     string
	Type     string
	Protocol string
	// Datacenter/ISP config
	Country string
	// Residential/Mobile config
	City  string
	State string
	Zip   string
	ASN   string
	OS    string
	// Mobile specific
	Carrier string
	// Custom proxy config
	Host     string
	Port     int
	Username string
	Password string
}

type ProxyDeleteInput

type ProxyDeleteInput struct {
	ID          string
	SkipConfirm bool
}

type ProxyGetInput

type ProxyGetInput struct {
	ID string
}

type ProxyListInput

type ProxyListInput struct{}

Input types for proxy operations

type ProxyService

type ProxyService interface {
	List(ctx context.Context, opts ...option.RequestOption) (res *[]kernel.ProxyListResponse, err error)
	Get(ctx context.Context, id string, opts ...option.RequestOption) (res *kernel.ProxyGetResponse, err error)
	New(ctx context.Context, body kernel.ProxyNewParams, opts ...option.RequestOption) (res *kernel.ProxyNewResponse, err error)
	Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
}

ProxyService defines the subset of the Kernel SDK proxy client that we use.

Jump to

Keyboard shortcuts

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