Documentation
¶
Index ¶
- func ContextValue(c *Config) cli.Action
- func FlagsAndArgs() cli.Action
- func ListCiphers() cli.Action
- func ListCurves() cli.Action
- func SetCACertFile(path ...string) cli.Action
- func SetCACertPath(path ...string) cli.Action
- func SetCiphers(v ...*CipherSuites) cli.Action
- func SetClientCertFile(path ...string) cli.Action
- func SetCurves(v ...*CurveIDs) cli.Action
- func SetInsecureSkipVerify(v ...bool) cli.Action
- func SetKeyFile(path ...string) cli.Action
- func SetNextProtos(s ...[]string) cli.Action
- func SetServerName(s ...string) cli.Action
- func SetTLSv1() cli.Action
- func SetTLSv1_0() cli.Action
- func SetTLSv1_1() cli.Action
- func SetTLSv1_2() cli.Action
- func SetTLSv1_3() cli.Action
- func SetTime(s ...*cli.File) cli.Action
- func SourceAnnotation() (string, string)
- type CipherSuites
- type Config
- type CurveIDs
- type Option
- func WithCertificate(cert gotls.Certificate) Option
- func WithCiphers(ids *CipherSuites) Option
- func WithCurves(ids *CurveIDs) Option
- func WithInsecureSkipVerify(v bool) Option
- func WithNextProtos(s []string) Option
- func WithRootCACertFile(filename string) Option
- func WithRootCACertPath(path string) Option
- func WithServerName(s string) Option
- func WithTimeHelper(f *cli.File) Option
- func WithX509KeyPair(certFile, keyFile string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextValue ¶
func FlagsAndArgs ¶
func ListCiphers ¶
func ListCurves ¶
func SetCACertFile ¶
func SetCACertPath ¶
func SetCiphers ¶
func SetCiphers(v ...*CipherSuites) cli.Action
func SetClientCertFile ¶
func SetInsecureSkipVerify ¶
func SetKeyFile ¶
func SetNextProtos ¶
func SetServerName ¶
func SetTLSv1_0 ¶
func SetTLSv1_1 ¶
func SetTLSv1_2 ¶
func SetTLSv1_3 ¶
func SourceAnnotation ¶
SourceAnnotation gets the name and value of the annotation added to the Data of all flags that are initialized from this package
Types ¶
type CipherSuites ¶
type CipherSuites []uint16
func (*CipherSuites) Set ¶
func (c *CipherSuites) Set(arg string) error
func (*CipherSuites) String ¶
func (c *CipherSuites) String() string
func (*CipherSuites) Synopsis ¶
func (c *CipherSuites) Synopsis() string
type Config ¶
func FromContext ¶
FromContext obtains the server from the context.
type Option ¶
type Option func(*Config)
func WithCertificate ¶
func WithCertificate(cert gotls.Certificate) Option
func WithCiphers ¶
func WithCiphers(ids *CipherSuites) Option
func WithCurves ¶
func WithInsecureSkipVerify ¶
func WithNextProtos ¶
func WithRootCACertFile ¶
func WithRootCACertPath ¶
func WithServerName ¶
func WithTimeHelper ¶
func WithX509KeyPair ¶
Click to show internal directories.
Click to hide internal directories.