Documentation
¶
Index ¶
- Variables
- type ProxyCheckInput
- type ProxyCmd
- func (p ProxyCmd) Check(ctx context.Context, in ProxyCheckInput) error
- func (p ProxyCmd) Create(ctx context.Context, in ProxyCreateInput) error
- func (p ProxyCmd) Delete(ctx context.Context, in ProxyDeleteInput) error
- func (p ProxyCmd) Get(ctx context.Context, in ProxyGetInput) error
- func (p ProxyCmd) List(ctx context.Context, in ProxyListInput) error
- func (p ProxyCmd) Update(ctx context.Context, in ProxyUpdateInput) error
- type ProxyCreateInput
- type ProxyDeleteInput
- type ProxyGetInput
- type ProxyIPCmd
- type ProxyIPGetInput
- type ProxyIPListInput
- type ProxyIPService
- type ProxyListInput
- type ProxyService
- type ProxyUpdateInput
Constants ¶
This section is empty.
Variables ¶
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
var ProxyIPsCmd = &cobra.Command{ Use: "proxy-ips", Aliases: []string{"proxy-ip"}, Short: "Inspect reserved ISP proxy IPs", Long: "List and inspect the IP addresses reserved for your organization's ISP proxies.", Run: func(cmd *cobra.Command, args []string) { _ = cmd.Help() }, }
ProxyIPsCmd is the parent command for reserved ISP proxy IP operations.
Functions ¶
This section is empty.
Types ¶
type ProxyCheckInput ¶ added in v0.14.0
type ProxyCmd ¶
type ProxyCmd struct {
// contains filtered or unexported fields
}
ProxyCmd handles proxy operations independent of cobra.
type ProxyCreateInput ¶
type ProxyCreateInput struct {
Name string
Type string
Protocol string
IPAddress string
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string
// ISP config
Country string
// Residential/Mobile config
City string
State string
Zip string
ASN string
OS string
// Custom proxy config
Host string
Port int
Username string
Password string
CaBundleFile string
Output string
}
type ProxyDeleteInput ¶
type ProxyGetInput ¶
type ProxyIPCmd ¶ added in v0.51.0
type ProxyIPCmd struct {
// contains filtered or unexported fields
}
ProxyIPCmd handles reserved ISP proxy IP operations independently of cobra.
func (ProxyIPCmd) Get ¶ added in v0.51.0
func (p ProxyIPCmd) Get(ctx context.Context, in ProxyIPGetInput) error
func (ProxyIPCmd) List ¶ added in v0.51.0
func (p ProxyIPCmd) List(ctx context.Context, in ProxyIPListInput) error
type ProxyIPGetInput ¶ added in v0.51.0
type ProxyIPListInput ¶ added in v0.51.0
type ProxyIPService ¶ added in v0.51.0
type ProxyIPService interface {
List(ctx context.Context, query kernel.ProxyIPListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[kernel.ProxyIP], err error)
Get(ctx context.Context, ipAddress string, opts ...option.RequestOption) (res *kernel.ProxyIPDetail, err error)
}
ProxyIPService defines the subset of the Kernel SDK reserved proxy IP client used by the CLI.
type ProxyListInput ¶
type ProxyListInput struct {
Name string
Query string
IPAddress string
Limit int
Offset int
Output string
}
Input types for proxy operations
type ProxyService ¶
type ProxyService interface {
List(ctx context.Context, query kernel.ProxyListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[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)
Update(ctx context.Context, id string, body kernel.ProxyUpdateParams, opts ...option.RequestOption) (res *kernel.ProxyUpdateResponse, err error)
Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Check(ctx context.Context, id string, body kernel.ProxyCheckParams, opts ...option.RequestOption) (res *kernel.ProxyCheckResponse, err error)
}
ProxyService defines the subset of the Kernel SDK proxy client that we use.