Documentation
¶
Overview ¶
Package traefik_github_actions_ip_whitelist_plugin Traefik Github Actions IP Whitelist Plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AdditionalCIDRs []string
}
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type GithubActionWhitelist ¶
type GithubActionWhitelist struct {
// contains filtered or unexported fields
}
GithubActionWhitelist a Github Action IP Whitelist plugin.
func (*GithubActionWhitelist) ServeTCP ¶
func (wl *GithubActionWhitelist) ServeTCP(conn TcpWriteCloser)
type GithubMetaResponse ¶
type GithubMetaResponse struct {
Actions []string `json:"enabled,omitempty"`
}
type TcpHandler ¶
type TcpHandler interface {
ServeTCP(conn TcpWriteCloser)
}
TcpHandler is the TCP Handlers interface.
func New ¶
func New(ctx context.Context, next TcpHandler, config *Config, name string) (TcpHandler, error)
New creates a new Github Action IP Whitelist plugin.
type TcpWriteCloser ¶
type TcpWriteCloser interface {
net.Conn
// CloseWrite on a network connection, indicates that the issuer of the call
// has terminated sending on that connection.
// It corresponds to sending a FIN packet.
CloseWrite() error
}
TcpWriteCloser describes a net.Conn with a CloseWrite method.
Click to show internal directories.
Click to hide internal directories.