curl

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBoolFlag added in v0.1.4

func IsBoolFlag(v Value) bool

Types

type Addr

type Addr string

func NewAddr

func NewAddr(value string) *Addr

func (Addr) Get

func (a Addr) Get() interface{}

func (*Addr) Set

func (a *Addr) Set(value string) error

func (Addr) String

func (a Addr) String() string

func (Addr) Type

func (a Addr) Type() string

type AddrList

type AddrList []string

func NewAddrList

func NewAddrList(value []string) *AddrList

func (AddrList) Get

func (a AddrList) Get() interface{}

func (*AddrList) Set

func (a *AddrList) Set(value string) error

func (AddrList) String

func (a AddrList) String() string

func (AddrList) Type

func (a AddrList) Type() string

type Binary

type Binary []byte

func NewBinary

func NewBinary(value []byte) *Binary

func (Binary) Get

func (b Binary) Get() interface{}

func (*Binary) Set

func (b *Binary) Set(value string) error

func (Binary) String

func (b Binary) String() string

func (Binary) Type

func (b Binary) Type() string

type Bool

type Bool bool

func NewBool

func NewBool(value bool) *Bool

func (Bool) Get

func (b Bool) Get() interface{}

func (Bool) IsBoolFlag

func (b Bool) IsBoolFlag() bool

func (*Bool) Set

func (b *Bool) Set(value string) error

func (Bool) String

func (b Bool) String() string

func (Bool) Type

func (b Bool) Type() string

type Bytes

type Bytes int64

func NewBytes

func NewBytes(value int64) *Bytes

func (Bytes) Get

func (b Bytes) Get() interface{}

func (*Bytes) Set

func (b *Bytes) Set(value string) error

func (Bytes) String

func (b Bytes) String() string

func (Bytes) Type

func (b Bytes) Type() string

type Certificate

type Certificate string

func NewCertificate

func NewCertificate(value string) *Certificate

func (Certificate) Get

func (c Certificate) Get() interface{}

func (*Certificate) Set

func (c *Certificate) Set(value string) error

func (Certificate) String

func (c Certificate) String() string

func (Certificate) Type

func (c Certificate) Type() string

type CertificateKey

type CertificateKey string

func NewCertificateKey

func NewCertificateKey(value string) *CertificateKey

func (CertificateKey) Get

func (k CertificateKey) Get() interface{}

func (*CertificateKey) Set

func (k *CertificateKey) Set(value string) error

func (CertificateKey) String

func (k CertificateKey) String() string

func (CertificateKey) Type

func (k CertificateKey) Type() string

type CipherList

type CipherList []string

func NewCipherList

func NewCipherList(value []string) *CipherList

func (CipherList) Get

func (c CipherList) Get() interface{}

func (*CipherList) Set

func (c *CipherList) Set(value string) error

func (CipherList) String

func (c CipherList) String() string

func (CipherList) Type

func (c CipherList) Type() string

type Connect

type Connect string

func NewConnect

func NewConnect(value string) *Connect

func (Connect) Get

func (c Connect) Get() interface{}

func (*Connect) Set

func (c *Connect) Set(value string) error

func (Connect) String

func (c Connect) String() string

func (Connect) Type

func (c Connect) Type() string

type Dir

type Dir string

func NewDir

func NewDir(value string) *Dir

func (Dir) Get

func (d Dir) Get() interface{}

func (*Dir) Set

func (d *Dir) Set(value string) error

func (Dir) String

func (d Dir) String() string

func (Dir) Type

func (d Dir) Type() string

type File

type File string

func NewFile

func NewFile(value string) *File

func (File) Get

func (f File) Get() interface{}

func (*File) Set

func (f *File) Set(value string) error

func (File) String

func (f File) String() string

func (File) Type

func (f File) Type() string

type FileRange

type FileRange string

func NewFileRange

func NewFileRange(value string) *FileRange

func (FileRange) Get

func (r FileRange) Get() interface{}

func (*FileRange) Set

func (r *FileRange) Set(value string) error

func (FileRange) String

func (r FileRange) String() string

func (FileRange) Type

func (r FileRange) Type() string

type HeaderField

type HeaderField string

func NewHeaderField

func NewHeaderField(value string) *HeaderField

func (HeaderField) Get

func (h HeaderField) Get() interface{}

func (*HeaderField) Set

func (h *HeaderField) Set(value string) error

func (HeaderField) String

func (h HeaderField) String() string

func (HeaderField) Type

func (h HeaderField) Type() string

type HostPort

type HostPort string

func NewHostPort

func NewHostPort(value string) *HostPort

func (HostPort) Get

func (h HostPort) Get() interface{}

func (*HostPort) Set

func (h *HostPort) Set(value string) error

func (HostPort) String

func (h HostPort) String() string

func (HostPort) Type

func (h HostPort) Type() string

type Method

type Method string

func NewMethod

func NewMethod(value string) *Method

func (Method) Get

func (m Method) Get() interface{}

func (*Method) Set

func (m *Method) Set(value string) error

func (Method) String

func (m Method) String() string

func (Method) Type

func (m Method) Type() string

type Milliseconds

type Milliseconds int64

func NewMilliseconds

func NewMilliseconds(value time.Duration) *Milliseconds

func (Milliseconds) Get

func (ms Milliseconds) Get() interface{}

func (*Milliseconds) Set

func (ms *Milliseconds) Set(value string) error

func (Milliseconds) String

func (ms Milliseconds) String() string

func (Milliseconds) Type

func (ms Milliseconds) Type() string

type Name

type Name string

func NewName

func NewName(value string) *Name

func (Name) Get

func (n Name) Get() interface{}

func (*Name) Set

func (n *Name) Set(value string) error

func (Name) String

func (n Name) String() string

func (Name) Type

func (n Name) Type() string

type NetworkInterface

type NetworkInterface string

func NewNetworkInterface

func NewNetworkInterface(value string) *NetworkInterface

func (NetworkInterface) Get

func (i NetworkInterface) Get() interface{}

func (*NetworkInterface) Set

func (i *NetworkInterface) Set(value string) error

func (NetworkInterface) String

func (i NetworkInterface) String() string

func (NetworkInterface) Type

func (i NetworkInterface) Type() string

type Number

type Number int

func NewNumber

func NewNumber(value int) *Number

func (Number) Get

func (n Number) Get() interface{}

func (*Number) Set

func (n *Number) Set(value string) error

func (Number) String

func (n Number) String() string

func (Number) Type

func (n Number) Type() string

type Offset

type Offset int64

func NewOffset

func NewOffset(value int64) *Offset

func (Offset) Get

func (o Offset) Get() interface{}

func (*Offset) Set

func (o *Offset) Set(value string) error

func (Offset) String

func (o Offset) String() string

func (Offset) Type

func (o Offset) Type() string

type Option

type Option struct {
	Name  string
	Help  string
	Short string
	Value Value
}

func AbstractUnixSocket

func AbstractUnixSocket(path string) Option

func AltSvc

func AltSvc(path string) Option

func Anyauth

func Anyauth(on bool) Option

func Append

func Append(on bool) Option

func Basic

func Basic(on bool) Option

func CACert

func CACert(path string) Option

func CAPath

func CAPath(path string) Option

func CRLF

func CRLF(on bool) Option

func CRLFile

func CRLFile(path string) Option

func Cert

func Cert(cert string) Option

func CertStatus

func CertStatus(on bool) Option

func CertType

func CertType(typ string) Option

func Ciphers

func Ciphers(ciphers ...string) Option

func Compressed

func Compressed(on bool) Option

func CompressedSSH

func CompressedSSH(on bool) Option

func Config

func Config(path string) Option

func ConnectTimeout

func ConnectTimeout(timeout time.Duration) Option

func ConnectTo

func ConnectTo(addr string) Option

func ContinueAt

func ContinueAt(offset int64) Option
func Cookie(dataOrFile string) Option

func CookieJar

func CookieJar(path string) Option

func CreateDirs

func CreateDirs(on bool) Option

func DNSIPv4Addr

func DNSIPv4Addr(addr string) Option

func DNSIPv6Addr

func DNSIPv6Addr(addr string) Option

func DNSInterface

func DNSInterface(iface string) Option

func DNSServers

func DNSServers(addrs ...string) Option

func Data

func Data(data []byte) Option

func DataASCII

func DataASCII(data []byte) Option

func DataBinary

func DataBinary(data []byte) Option

func DataRaw

func DataRaw(data []byte) Option

func DataUrlencode

func DataUrlencode(data []byte) Option

func Delegation

func Delegation(level string) Option

func Digest

func Digest(on bool) Option

func Disable

func Disable(on bool) Option

func DisableEPSV

func DisableEPSV(on bool) Option

func DisallowUsernameInURL

func DisallowUsernameInURL(on bool) Option

func DoHURL

func DoHURL(url string) Option

func DumpHeader

func DumpHeader(path string) Option

func EGDFile

func EGDFile(path string) Option

func Engine

func Engine(name string) Option

func Expect100Timeout

func Expect100Timeout(timeout time.Duration) Option

func FTPAccount

func FTPAccount(data []byte) Option

func FTPAlternativeToUser

func FTPAlternativeToUser(command string) Option

func FTPCreateDirs

func FTPCreateDirs(on bool) Option

func FTPMethod

func FTPMethod(method string) Option

func FTPPasv

func FTPPasv(on bool) Option

func FTPPort

func FTPPort(addr string) Option

func FTPPret

func FTPPret(on bool) Option

func FTPSSLCCC

func FTPSSLCCC(on bool) Option

func FTPSSLCCCMode

func FTPSSLCCCMode(mode string) Option

func FTPSkipPasvIP

func FTPSkipPasvIP(on bool) Option

func Fail

func Fail(on bool) Option

func FailEarly

func FailEarly(on bool) Option

func Form

func Form(form string) Option

func FormString

func FormString(form string) Option

func Get

func Get(on bool) Option

func Globoff

func Globoff(on bool) Option

func HAProxyProtocol

func HAProxyProtocol(on bool) Option

func HTTP09

func HTTP09(on bool) Option

func HTTP11

func HTTP11(on bool) Option

func HTTP2

func HTTP2(on bool) Option

func HTTP2PriorKnowledge

func HTTP2PriorKnowledge(on bool) Option

func HappyEyeballsTimeout

func HappyEyeballsTimeout(timeout time.Duration) Option
func Head(on bool) Option
func Header(header string) Option

func Hostpubmd5

func Hostpubmd5(md5 string) Option

func IPv4

func IPv4(on bool) Option

func IPv6

func IPv6(on bool) Option

func IgnoreContentLength

func IgnoreContentLength(on bool) Option

func Include

func Include(on bool) Option

func Insecure

func Insecure(on bool) Option

func Interface

func Interface(iface string) Option

func JunkSessionCookies

func JunkSessionCookies(on bool) Option

func KRB

func KRB(level string) Option

func KeepaliveTime

func KeepaliveTime(keepalive time.Duration) Option

func Key

func Key(key string) Option

func KeyType

func KeyType(typ string) Option

func Libcurl

func Libcurl(path string) Option

func LimitRate

func LimitRate(speed string) Option

func ListOnly

func ListOnly(on bool) Option

func LocalPort

func LocalPort(numberOrRange string) Option

func Location

func Location(on bool) Option

func LoginOptions

func LoginOptions(options string) Option

func MailAuth

func MailAuth(addr string) Option

func MailFrom

func MailFrom(addr string) Option

func MailRcpt

func MailRcpt(addr string) Option

func Manual

func Manual(on bool) Option

func MaxFilesize

func MaxFilesize(bytes int64) Option

func MaxRedirs

func MaxRedirs(num int) Option

func MaxTime

func MaxTime(max time.Duration) Option
func Metalink(on bool) Option

func NTLM

func NTLM(on bool) Option

func NTLMWB

func NTLMWB(on bool) Option

func Negotiate

func Negotiate(on bool) Option

func Netrc

func Netrc(on bool) Option

func NetrcFile

func NetrcFile(path string) Option

func NetrcOptional

func NetrcOptional(on bool) Option

func Next

func Next(on bool) Option

func NoALPN

func NoALPN(on bool) Option

func NoBuffer

func NoBuffer(on bool) Option

func NoKeepalive

func NoKeepalive(on bool) Option

func NoNPN

func NoNPN(on bool) Option

func NoProxy

func NoProxy(addrs ...string) Option

func NoSessionID

func NoSessionID(on bool) Option

func OAuth2Bearer

func OAuth2Bearer(token string) Option

func Output

func Output(path string) Option

func Pass

func Pass(phrase string) Option

func PathAsIs

func PathAsIs(on bool) Option

func PinnedPubKey

func PinnedPubKey(path string) Option

func Post301

func Post301(on bool) Option

func Post302

func Post302(on bool) Option

func Post303

func Post303(on bool) Option

func Preproxy

func Preproxy(url string) Option

func ProgressBar

func ProgressBar(on bool) Option

func Proto

func Proto(protocols ...string) Option

func ProtoDefault

func ProtoDefault(protocol string) Option

func ProtoRedir

func ProtoRedir(protocols ...string) Option

func Proxy

func Proxy(addr string) Option

func Proxy10

func Proxy10(hostPort string) Option

func ProxyAnyauth

func ProxyAnyauth(on bool) Option

func ProxyBasic

func ProxyBasic(on bool) Option

func ProxyCACert

func ProxyCACert(path string) Option

func ProxyCRLFile

func ProxyCRLFile(path string) Option

func ProxyCert

func ProxyCert(cert string) Option

func ProxyCertType

func ProxyCertType(typ string) Option

func ProxyCiphers

func ProxyCiphers(ciphers ...string) Option

func ProxyDiget

func ProxyDiget(on bool) Option

func ProxyHeader

func ProxyHeader(header string) Option

func ProxyInsecure

func ProxyInsecure(on bool) Option

func ProxyKey

func ProxyKey(key string) Option

func ProxyKeyType

func ProxyKeyType(typ string) Option

func ProxyNTLM

func ProxyNTLM(on bool) Option

func ProxyNegotiate

func ProxyNegotiate(on bool) Option

func ProxyPass

func ProxyPass(phrase string) Option

func ProxyPinnedpubkey

func ProxyPinnedpubkey(path string) Option

func ProxySSLAllowBeast

func ProxySSLAllowBeast(on bool) Option

func ProxyServiceName

func ProxyServiceName(name string) Option

func ProxyTLS13Ciphers

func ProxyTLS13Ciphers(ciphers ...string) Option

func ProxyTLSAuthType

func ProxyTLSAuthType(typ string) Option

func ProxyTLSPassword

func ProxyTLSPassword(password string) Option

func ProxyTLSUser

func ProxyTLSUser(user string) Option

func ProxyTLSv1

func ProxyTLSv1(on bool) Option

func ProxyTunnel

func ProxyTunnel(on bool) Option

func ProxyUser

func ProxyUser(user string) Option

func Pubkey

func Pubkey(key string) Option

func Quote

func Quote(on bool) Option

func RandomFile

func RandomFile(path string) Option

func Range

func Range(r string) Option

func Raw

func Raw(on bool) Option

func Referer

func Referer(url string) Option

func RemoteHeaderName

func RemoteHeaderName(on bool) Option

func RemoteName

func RemoteName(on bool) Option

func RemoteNameAll

func RemoteNameAll(on bool) Option

func RemoteTime

func RemoteTime(on bool) Option

func Request

func Request(method string) Option

func RequestTarget

func RequestTarget(on bool) Option

func Resolve

func Resolve(resolve ...string) Option

func Retry

func Retry(limit int) Option

func RetryConnrefused

func RetryConnrefused(on bool) Option

func RetryDelay

func RetryDelay(delay time.Duration) Option

func RetryMaxTime

func RetryMaxTime(limit time.Duration) Option

func SASLIR

func SASLIR(on bool) Option

func SOCKS4

func SOCKS4(hostPort string) Option

func SOCKS4a

func SOCKS4a(hostPort string) Option

func SOCKS5

func SOCKS5(hostPort string) Option

func SOCKS5Basic

func SOCKS5Basic(on bool) Option

func SOCKS5GssAPI

func SOCKS5GssAPI(on bool) Option

func SOCKS5GssAPIService

func SOCKS5GssAPIService(name string) Option

func SOCKS5Hostname

func SOCKS5Hostname(hostPort string) Option

func SSL

func SSL(on bool) Option

func SSLAllowBeast

func SSLAllowBeast(on bool) Option

func SSLNoRevoke

func SSLNoRevoke(on bool) Option

func SSLReqd

func SSLReqd(on bool) Option

func SSLv2

func SSLv2(on bool) Option

func SSLv3

func SSLv3(on bool) Option

func ServiceName

func ServiceName(name string) Option

func ShowError

func ShowError(on bool) Option

func Silent

func Silent(on bool) Option

func SpeedLimit

func SpeedLimit(speed string) Option

func SpeedTime

func SpeedTime(speed time.Duration) Option

func Stderr

func Stderr(on bool) Option

func StyledOutput

func StyledOutput(on bool) Option

func SuppressConnectHeaders

func SuppressConnectHeaders(on bool) Option

func TCPFastOpen

func TCPFastOpen(on bool) Option

func TCPNoDelay

func TCPNoDelay(on bool) Option

func TFTPBlkSize

func TFTPBlkSize(size int) Option

func TFTPNoOptions

func TFTPNoOptions(on bool) Option

func TLS13Ciphers

func TLS13Ciphers(ciphers ...string) Option

func TLSAuthType

func TLSAuthType(typ string) Option

func TLSMax

func TLSMax(version string) Option

func TLSPassword

func TLSPassword(on bool) Option

func TLSUser

func TLSUser(user string) Option

func TLSv10

func TLSv10(on bool) Option

func TLSv11

func TLSv11(on bool) Option

func TLSv12

func TLSv12(on bool) Option

func TLSv13

func TLSv13(on bool) Option

func TSLv1

func TSLv1(on bool) Option

func TelnetOption

func TelnetOption(opt string) Option

func TimeCond

func TimeCond(date string) Option

func TrEncoding

func TrEncoding(on bool) Option

func Trace

func Trace(path string) Option

func TraceASCII

func TraceASCII(path string) Option

func TraceTime

func TraceTime(on bool) Option

func UnixSocket

func UnixSocket(path string) Option

func UploadFile

func UploadFile(path string) Option

func Url

func Url(url string) Option

func UseASCII

func UseASCII(on bool) Option

func User

func User(userPassword string) Option

func UserAgent

func UserAgent(userAgent string) Option

func Verbose

func Verbose(on bool) Option

func Version

func Version(on bool) Option

func WriteOut

func WriteOut(format string) Option

func XAttr

func XAttr(on bool) Option

func (*Option) String

func (opt *Option) String() string

type OptionSet

type OptionSet []Option

func NewOptionSet

func NewOptionSet() OptionSet

func (OptionSet) Len

func (opts OptionSet) Len() int

func (OptionSet) Less

func (opts OptionSet) Less(i, j int) bool

func (OptionSet) Search

func (opts OptionSet) Search(option string) int

func (OptionSet) Swap

func (opts OptionSet) Swap(i, j int)

type Port

type Port string

func NewPort

func NewPort(value string) *Port

func (Port) Get

func (p Port) Get() interface{}

func (*Port) Set

func (p *Port) Set(value string) error

func (Port) String

func (p Port) String() string

func (Port) Type

func (p Port) Type() string

type Protocol

type Protocol string

func NewProtocol

func NewProtocol(value string) *Protocol

func (Protocol) Get

func (p Protocol) Get() interface{}

func (*Protocol) Set

func (p *Protocol) Set(value string) error

func (Protocol) String

func (p Protocol) String() string

func (Protocol) Type

func (p Protocol) Type() string

type ProtocolList

type ProtocolList []string

func NewProtocolList

func NewProtocolList(value []string) *ProtocolList

func (ProtocolList) Get

func (p ProtocolList) Get() interface{}

func (*ProtocolList) Set

func (p *ProtocolList) Set(value string) error

func (ProtocolList) String

func (p ProtocolList) String() string

func (ProtocolList) Type

func (p ProtocolList) Type() string

type ProxyAddr

type ProxyAddr string

func NewProxyAddr

func NewProxyAddr(value string) *ProxyAddr

func (ProxyAddr) Get

func (a ProxyAddr) Get() interface{}

func (*ProxyAddr) Set

func (a *ProxyAddr) Set(value string) error

func (ProxyAddr) String

func (a ProxyAddr) String() string

func (ProxyAddr) Type

func (a ProxyAddr) Type() string

type Seconds

type Seconds float64

func NewSeconds

func NewSeconds(value time.Duration) *Seconds

func (Seconds) Get

func (s Seconds) Get() interface{}

func (*Seconds) Set

func (s *Seconds) Set(value string) error

func (Seconds) String

func (s Seconds) String() string

func (Seconds) Type

func (s Seconds) Type() string

type Speed

type Speed string

func NewSpeed

func NewSpeed(value string) *Speed

func (Speed) Get

func (s Speed) Get() interface{}

func (*Speed) Set

func (s *Speed) Set(value string) error

func (Speed) String

func (s Speed) String() string

func (Speed) Type

func (s Speed) Type() string

type String

type String string

func NewString

func NewString(value string) *String

func (String) Get

func (s String) Get() interface{}

func (*String) Set

func (s *String) Set(value string) error

func (String) String

func (s String) String() string

func (String) Type

func (s String) Type() string

type Token

type Token string

func NewToken

func NewToken(value string) *Token

func (Token) Get

func (t Token) Get() interface{}

func (*Token) Set

func (t *Token) Set(value string) error

func (Token) String

func (t Token) String() string

func (Token) Type

func (t Token) Type() string

type Type

type Type string

func NewType

func NewType(value string) *Type

func (Type) Get

func (t Type) Get() interface{}

func (*Type) Set

func (t *Type) Set(value string) error

func (Type) String

func (t Type) String() string

func (Type) Type

func (t Type) Type() string

type URL

type URL string

func NewURL

func NewURL(value string) *URL

func (URL) Get

func (u URL) Get() interface{}

func (*URL) Set

func (u *URL) Set(value string) error

func (URL) String

func (u URL) String() string

func (URL) Type

func (u URL) Type() string

type UserPassword

type UserPassword string

func NewUserPassword

func NewUserPassword(value string) *UserPassword

func (UserPassword) Get

func (u UserPassword) Get() interface{}

func (*UserPassword) Set

func (u *UserPassword) Set(value string) error

func (UserPassword) String

func (u UserPassword) String() string

func (UserPassword) Type

func (u UserPassword) Type() string

type Value

type Value interface {
	flag.Value
	flag.Getter
	Type() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳