sslflag

package module
Version: v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: CC0-1.0 Imports: 10 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSet added in v0.0.13

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

ClientSet is the standard command-line set for client SSL options.

func (*ClientSet) Certificate added in v0.0.13

func (s *ClientSet) Certificate() []byte

Certificate returns any SSL certificates. This should only be called after a successful call to Validate.

func (*ClientSet) Disabled added in v0.0.13

func (s *ClientSet) Disabled() bool

Disabled returns true iff SSL is disabled. This should only be called after a successful call to Validate.

func (*ClientSet) Flags added in v0.0.13

func (s *ClientSet) Flags() []flag.Flag

Flags returns the members of the set.

func (*ClientSet) Name added in v0.0.13

func (*ClientSet) Name() string

Name returns the name of this collection of flags.

func (*ClientSet) UsageFooter added in v0.0.13

func (*ClientSet) UsageFooter() string

UsageFooter returns the footer for the usage message for this flag set.

func (*ClientSet) UsageHeader added in v0.0.13

func (*ClientSet) UsageHeader() string

UsageHeader returns the header for the usage message for this flag set.

func (*ClientSet) Validate added in v0.0.13

func (s *ClientSet) Validate() error

Validate validates the flag set.

type ServerSet added in v0.0.13

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

ServerSet is the standard command-line set for server SSL options.

func (*ServerSet) Certificate added in v0.0.13

func (s *ServerSet) Certificate() []byte

Certificate returns the SSL certificate for the private key. This should only be called after a successful call to Validate.

func (*ServerSet) Disabled added in v0.0.13

func (s *ServerSet) Disabled() bool

Disabled returns true iff SSL is disabled. This should only be called after a successful call to Validate.

func (*ServerSet) Flags added in v0.0.13

func (s *ServerSet) Flags() []flag.Flag

Flags returns the members of the set.

func (*ServerSet) Key added in v0.0.13

func (s *ServerSet) Key() []byte

Key returns the SSL private key. This should only be called after a successful call to Validate.

func (*ServerSet) Name added in v0.0.13

func (*ServerSet) Name() string

Name returns the name of this collection of flags.

func (*ServerSet) UsageFooter added in v0.0.13

func (s *ServerSet) UsageFooter() string

UsageFooter returns the footer for the usage message for this flag set.

func (*ServerSet) UsageHeader added in v0.0.13

func (*ServerSet) UsageHeader() string

UsageHeader returns the header for the usage message for this flag set.

func (*ServerSet) Validate added in v0.0.13

func (s *ServerSet) Validate() error

Validate validates the flag set.

Source Files

Jump to

Keyboard shortcuts

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