internal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleTypeRegex     = "regex"
	RuleTypeSubString = "substring"
	RuleTypePrefix    = "prefix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules []Rule `yaml:"rules" json:"rules"`
}

type Options

type Options struct {
	ConfigFile     string
	CertDir        string
	ListenPort     int
	ReloadInterval time.Duration
}

type Rule

type Rule struct {
	Type    string `yaml:"type" json:"type"`
	Match   string `yaml:"match" json:"match"`
	Replace string `yaml:"replace" json:"replace"`
	// contains filtered or unexported fields
}

func (*Rule) Execute

func (r *Rule) Execute(image string) (after string, replaced bool)

func (*Rule) Verify

func (r *Rule) Verify() error

type Server

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

func NewServer

func NewServer(opts Options) (*Server, error)

func (*Server) Start

func (s *Server) Start(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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