Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
CAFiles []FileOrContent `json:"caFiles,omitempty" toml:"caFiles,omitempty" yaml:"caFiles,omitempty"`
AllowExtensions []string `json:"allowExtensions,omitempty" toml:"allowExtensions,omitempty" yaml:"allowExtensions,omitempty"`
}
Config is the configuration for this plugin
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates a new configuration for this plugin
type CustomMTLS ¶
type CustomMTLS struct {
// contains filtered or unexported fields
}
CustomMTLS represents the basic properties of this plugin
func (*CustomMTLS) ServeHTTP ¶
func (e *CustomMTLS) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type FileOrContent ¶
type FileOrContent string
FileOrContent holds a file path or content.
func (FileOrContent) IsPath ¶
func (f FileOrContent) IsPath() bool
IsPath returns true if the FileOrContent is a file path, otherwise returns false.
func (FileOrContent) Read ¶
func (f FileOrContent) Read() ([]byte, error)
Read returns the content after reading the FileOrContent variable.
func (FileOrContent) String ¶
func (f FileOrContent) String() string
String returns the FileOrContent in string format.
Click to show internal directories.
Click to hide internal directories.