config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewpkscLexer

func NewpkscLexer(input antlr.CharStream) *pkscLexer

NewpkscLexer produces a new lexer instance for the optional input antlr.CharStream.

The *pkscLexer instance produced may be reused by calling the SetInputStream method. The initial lexer configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

func NewpkscParser

func NewpkscParser(input antlr.TokenStream) *pkscParser

NewpkscParser produces a new parser instance for the optional input antlr.TokenStream.

The *pkscParser instance produced may be reused by calling the SetInputStream method. The initial parser configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

Types

type BasepkscListener

type BasepkscListener struct{}

BasepkscListener is a complete listener for a parse tree produced by pkscParser.

func (*BasepkscListener) EnterConfig

func (s *BasepkscListener) EnterConfig(ctx *ConfigContext)

EnterConfig is called when production config is entered.

func (*BasepkscListener) EnterDaemon_stmt

func (s *BasepkscListener) EnterDaemon_stmt(ctx *Daemon_stmtContext)

EnterDaemon_stmt is called when production daemon_stmt is entered.

func (*BasepkscListener) EnterEveryRule

func (s *BasepkscListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BasepkscListener) EnterGen_type

func (s *BasepkscListener) EnterGen_type(ctx *Gen_typeContext)

EnterGen_type is called when production gen_type is entered.

func (*BasepkscListener) EnterName_block

func (s *BasepkscListener) EnterName_block(ctx *Name_blockContext)

EnterName_block is called when production name_block is entered.

func (*BasepkscListener) EnterName_elt_list

func (s *BasepkscListener) EnterName_elt_list(ctx *Name_elt_listContext)

EnterName_elt_list is called when production name_elt_list is entered.

func (*BasepkscListener) EnterName_list

func (s *BasepkscListener) EnterName_list(ctx *Name_listContext)

EnterName_list is called when production name_list is entered.

func (*BasepkscListener) EnterPass_block

func (s *BasepkscListener) EnterPass_block(ctx *Pass_blockContext)

EnterPass_block is called when production pass_block is entered.

func (*BasepkscListener) EnterPass_stmt

func (s *BasepkscListener) EnterPass_stmt(ctx *Pass_stmtContext)

EnterPass_stmt is called when production pass_stmt is entered.

func (*BasepkscListener) ExitConfig

func (s *BasepkscListener) ExitConfig(ctx *ConfigContext)

ExitConfig is called when production config is exited.

func (*BasepkscListener) ExitDaemon_stmt

func (s *BasepkscListener) ExitDaemon_stmt(ctx *Daemon_stmtContext)

ExitDaemon_stmt is called when production daemon_stmt is exited.

func (*BasepkscListener) ExitEveryRule

func (s *BasepkscListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BasepkscListener) ExitGen_type

func (s *BasepkscListener) ExitGen_type(ctx *Gen_typeContext)

ExitGen_type is called when production gen_type is exited.

func (*BasepkscListener) ExitName_block

func (s *BasepkscListener) ExitName_block(ctx *Name_blockContext)

ExitName_block is called when production name_block is exited.

func (*BasepkscListener) ExitName_elt_list

func (s *BasepkscListener) ExitName_elt_list(ctx *Name_elt_listContext)

ExitName_elt_list is called when production name_elt_list is exited.

func (*BasepkscListener) ExitName_list

func (s *BasepkscListener) ExitName_list(ctx *Name_listContext)

ExitName_list is called when production name_list is exited.

func (*BasepkscListener) ExitPass_block

func (s *BasepkscListener) ExitPass_block(ctx *Pass_blockContext)

ExitPass_block is called when production pass_block is exited.

func (*BasepkscListener) ExitPass_stmt

func (s *BasepkscListener) ExitPass_stmt(ctx *Pass_stmtContext)

ExitPass_stmt is called when production pass_stmt is exited.

func (*BasepkscListener) VisitErrorNode

func (s *BasepkscListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BasepkscListener) VisitTerminal

func (s *BasepkscListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type ConfigContext

type ConfigContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewConfigContext

func NewConfigContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConfigContext

func NewEmptyConfigContext

func NewEmptyConfigContext() *ConfigContext

func (*ConfigContext) AllCOMMENT

func (s *ConfigContext) AllCOMMENT() []antlr.TerminalNode

func (*ConfigContext) AllDaemon_stmt

func (s *ConfigContext) AllDaemon_stmt() []IDaemon_stmtContext

func (*ConfigContext) AllLINE_COMMENT

func (s *ConfigContext) AllLINE_COMMENT() []antlr.TerminalNode

func (*ConfigContext) COMMENT

func (s *ConfigContext) COMMENT(i int) antlr.TerminalNode

func (*ConfigContext) Daemon_stmt

func (s *ConfigContext) Daemon_stmt(i int) IDaemon_stmtContext

func (*ConfigContext) EnterRule

func (s *ConfigContext) EnterRule(listener antlr.ParseTreeListener)

func (*ConfigContext) ExitRule

func (s *ConfigContext) ExitRule(listener antlr.ParseTreeListener)

func (*ConfigContext) GetParser

func (s *ConfigContext) GetParser() antlr.Parser

func (*ConfigContext) GetRuleContext

func (s *ConfigContext) GetRuleContext() antlr.RuleContext

func (*ConfigContext) IsConfigContext

func (*ConfigContext) IsConfigContext()

func (*ConfigContext) LINE_COMMENT

func (s *ConfigContext) LINE_COMMENT(i int) antlr.TerminalNode

func (*ConfigContext) ToStringTree

func (s *ConfigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Daemon_stmtContext

type Daemon_stmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewDaemon_stmtContext

func NewDaemon_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Daemon_stmtContext

func NewEmptyDaemon_stmtContext

func NewEmptyDaemon_stmtContext() *Daemon_stmtContext

func (*Daemon_stmtContext) EnterRule

func (s *Daemon_stmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*Daemon_stmtContext) ExitRule

func (s *Daemon_stmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*Daemon_stmtContext) Gen_type

func (s *Daemon_stmtContext) Gen_type() IGen_typeContext

func (*Daemon_stmtContext) GetParser

func (s *Daemon_stmtContext) GetParser() antlr.Parser

func (*Daemon_stmtContext) GetRuleContext

func (s *Daemon_stmtContext) GetRuleContext() antlr.RuleContext

func (*Daemon_stmtContext) HNAME

func (*Daemon_stmtContext) IsDaemon_stmtContext

func (*Daemon_stmtContext) IsDaemon_stmtContext()

func (*Daemon_stmtContext) KWDAEMON

func (s *Daemon_stmtContext) KWDAEMON() antlr.TerminalNode

func (*Daemon_stmtContext) KWPATH

func (*Daemon_stmtContext) KWUSE

func (*Daemon_stmtContext) PATH

func (*Daemon_stmtContext) Pass_block

func (s *Daemon_stmtContext) Pass_block() IPass_blockContext

func (*Daemon_stmtContext) ToStringTree

func (s *Daemon_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Gen_typeContext

type Gen_typeContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyGen_typeContext

func NewEmptyGen_typeContext() *Gen_typeContext

func NewGen_typeContext

func NewGen_typeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Gen_typeContext

func (*Gen_typeContext) EnterRule

func (s *Gen_typeContext) EnterRule(listener antlr.ParseTreeListener)

func (*Gen_typeContext) ExitRule

func (s *Gen_typeContext) ExitRule(listener antlr.ParseTreeListener)

func (*Gen_typeContext) GetParser

func (s *Gen_typeContext) GetParser() antlr.Parser

func (*Gen_typeContext) GetRuleContext

func (s *Gen_typeContext) GetRuleContext() antlr.RuleContext

func (*Gen_typeContext) IsGen_typeContext

func (*Gen_typeContext) IsGen_typeContext()

func (*Gen_typeContext) KWGOGRPC

func (s *Gen_typeContext) KWGOGRPC() antlr.TerminalNode

func (*Gen_typeContext) KWGOTLS

func (s *Gen_typeContext) KWGOTLS() antlr.TerminalNode

func (*Gen_typeContext) KWPEM

func (s *Gen_typeContext) KWPEM() antlr.TerminalNode

func (*Gen_typeContext) ToStringTree

func (s *Gen_typeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IConfigContext

type IConfigContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsConfigContext differentiates from other interfaces.
	IsConfigContext()
}

IConfigContext is an interface to support dynamic dispatch.

type IDaemon_stmtContext

type IDaemon_stmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsDaemon_stmtContext differentiates from other interfaces.
	IsDaemon_stmtContext()
}

IDaemon_stmtContext is an interface to support dynamic dispatch.

type IGen_typeContext

type IGen_typeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsGen_typeContext differentiates from other interfaces.
	IsGen_typeContext()
}

IGen_typeContext is an interface to support dynamic dispatch.

type IName_blockContext

type IName_blockContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsName_blockContext differentiates from other interfaces.
	IsName_blockContext()
}

IName_blockContext is an interface to support dynamic dispatch.

type IName_elt_listContext

type IName_elt_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsName_elt_listContext differentiates from other interfaces.
	IsName_elt_listContext()
}

IName_elt_listContext is an interface to support dynamic dispatch.

type IName_listContext

type IName_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsName_listContext differentiates from other interfaces.
	IsName_listContext()
}

IName_listContext is an interface to support dynamic dispatch.

type IPass_blockContext

type IPass_blockContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsPass_blockContext differentiates from other interfaces.
	IsPass_blockContext()
}

IPass_blockContext is an interface to support dynamic dispatch.

type IPass_stmtContext

type IPass_stmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsPass_stmtContext differentiates from other interfaces.
	IsPass_stmtContext()
}

IPass_stmtContext is an interface to support dynamic dispatch.

type Name_blockContext

type Name_blockContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyName_blockContext

func NewEmptyName_blockContext() *Name_blockContext

func NewName_blockContext

func NewName_blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Name_blockContext

func (*Name_blockContext) EnterRule

func (s *Name_blockContext) EnterRule(listener antlr.ParseTreeListener)

func (*Name_blockContext) ExitRule

func (s *Name_blockContext) ExitRule(listener antlr.ParseTreeListener)

func (*Name_blockContext) GetParser

func (s *Name_blockContext) GetParser() antlr.Parser

func (*Name_blockContext) GetRuleContext

func (s *Name_blockContext) GetRuleContext() antlr.RuleContext

func (*Name_blockContext) HNAME

func (*Name_blockContext) IsName_blockContext

func (*Name_blockContext) IsName_blockContext()

func (*Name_blockContext) KWANY

func (*Name_blockContext) Name_list

func (s *Name_blockContext) Name_list() IName_listContext

func (*Name_blockContext) ToStringTree

func (s *Name_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Name_elt_listContext

type Name_elt_listContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyName_elt_listContext

func NewEmptyName_elt_listContext() *Name_elt_listContext

func NewName_elt_listContext

func NewName_elt_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Name_elt_listContext

func (*Name_elt_listContext) AllCOMMA

func (s *Name_elt_listContext) AllCOMMA() []antlr.TerminalNode

func (*Name_elt_listContext) AllHNAME

func (s *Name_elt_listContext) AllHNAME() []antlr.TerminalNode

func (*Name_elt_listContext) COMMA

func (*Name_elt_listContext) EnterRule

func (s *Name_elt_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Name_elt_listContext) ExitRule

func (s *Name_elt_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Name_elt_listContext) GetParser

func (s *Name_elt_listContext) GetParser() antlr.Parser

func (*Name_elt_listContext) GetRuleContext

func (s *Name_elt_listContext) GetRuleContext() antlr.RuleContext

func (*Name_elt_listContext) HNAME

func (*Name_elt_listContext) IsName_elt_listContext

func (*Name_elt_listContext) IsName_elt_listContext()

func (*Name_elt_listContext) ToStringTree

func (s *Name_elt_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Name_listContext

type Name_listContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyName_listContext

func NewEmptyName_listContext() *Name_listContext

func NewName_listContext

func NewName_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Name_listContext

func (*Name_listContext) EnterRule

func (s *Name_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Name_listContext) ExitRule

func (s *Name_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Name_listContext) GetParser

func (s *Name_listContext) GetParser() antlr.Parser

func (*Name_listContext) GetRuleContext

func (s *Name_listContext) GetRuleContext() antlr.RuleContext

func (*Name_listContext) IsName_listContext

func (*Name_listContext) IsName_listContext()

func (*Name_listContext) LCURLY

func (s *Name_listContext) LCURLY() antlr.TerminalNode

func (*Name_listContext) Name_elt_list

func (s *Name_listContext) Name_elt_list() IName_elt_listContext

func (*Name_listContext) RCURLY

func (s *Name_listContext) RCURLY() antlr.TerminalNode

func (*Name_listContext) ToStringTree

func (s *Name_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Options

type Options struct {
	Flavor int    // flags defining the type of sauce: gRPC-go, regular tls, pem, private
	Path   string // the directory where to write our sauce
	Policy *policy.Policy
	Debug  bool
}

type Daemons map[string]Options

func NewOptions

func NewOptions(path string, flavor int, p *policy.Policy, debug bool) Options

func (Options) Clients

func (opt Options) Clients() (list []string)

func (Options) IsValid

func (opt Options) IsValid(name string) (err error)

type Pass_blockContext

type Pass_blockContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPass_blockContext

func NewEmptyPass_blockContext() *Pass_blockContext

func NewPass_blockContext

func NewPass_blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Pass_blockContext

func (*Pass_blockContext) AllPass_stmt

func (s *Pass_blockContext) AllPass_stmt() []IPass_stmtContext

func (*Pass_blockContext) EnterRule

func (s *Pass_blockContext) EnterRule(listener antlr.ParseTreeListener)

func (*Pass_blockContext) ExitRule

func (s *Pass_blockContext) ExitRule(listener antlr.ParseTreeListener)

func (*Pass_blockContext) GetParser

func (s *Pass_blockContext) GetParser() antlr.Parser

func (*Pass_blockContext) GetRuleContext

func (s *Pass_blockContext) GetRuleContext() antlr.RuleContext

func (*Pass_blockContext) IsPass_blockContext

func (*Pass_blockContext) IsPass_blockContext()

func (*Pass_blockContext) LCURLY

func (s *Pass_blockContext) LCURLY() antlr.TerminalNode

func (*Pass_blockContext) Pass_stmt

func (s *Pass_blockContext) Pass_stmt(i int) IPass_stmtContext

func (*Pass_blockContext) RCURLY

func (s *Pass_blockContext) RCURLY() antlr.TerminalNode

func (*Pass_blockContext) ToStringTree

func (s *Pass_blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Pass_stmtContext

type Pass_stmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPass_stmtContext

func NewEmptyPass_stmtContext() *Pass_stmtContext

func NewPass_stmtContext

func NewPass_stmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Pass_stmtContext

func (*Pass_stmtContext) AllName_block

func (s *Pass_stmtContext) AllName_block() []IName_blockContext

func (*Pass_stmtContext) EnterRule

func (s *Pass_stmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*Pass_stmtContext) ExitRule

func (s *Pass_stmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*Pass_stmtContext) GetParser

func (s *Pass_stmtContext) GetParser() antlr.Parser

func (*Pass_stmtContext) GetRuleContext

func (s *Pass_stmtContext) GetRuleContext() antlr.RuleContext

func (*Pass_stmtContext) IsPass_stmtContext

func (*Pass_stmtContext) IsPass_stmtContext()

func (*Pass_stmtContext) KWDBG

func (s *Pass_stmtContext) KWDBG() antlr.TerminalNode

func (*Pass_stmtContext) KWON

func (*Pass_stmtContext) KWPASS

func (s *Pass_stmtContext) KWPASS() antlr.TerminalNode

func (*Pass_stmtContext) KWRPC

func (s *Pass_stmtContext) KWRPC() antlr.TerminalNode

func (*Pass_stmtContext) Name_block

func (s *Pass_stmtContext) Name_block(i int) IName_blockContext

func (*Pass_stmtContext) SEMI

func (*Pass_stmtContext) ToStringTree

func (s *Pass_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

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