Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aluttik/go-crossplane
/ functions
Functions
48 in github.com/aluttik/go-crossplane
⨍
Functions
48
◇
Types & classes
20
↓ 19 callers
Function
pStr
(s string)
parse_test.go:22
↓ 16 callers
Method
key
()
parse.go:18
↓ 8 callers
Function
pInt
(i int)
parse_test.go:18
↓ 5 callers
Function
analyze
(fname string, stmt Directive, term string, ctx blockCtx, options *ParseOptions)
analyze.go:80
↓ 5 callers
Function
isSpace
(s string)
util.go:23
↓ 4 callers
Function
Build
Build creates an NGINX config from a crossplane.Config.
build.go:63
↓ 4 callers
Function
Parse
Parse parses an NGINX configuration file.
parse.go:75
↓ 4 callers
Function
enquote
(arg string)
build.go:131
↓ 3 callers
Method
Error
()
errors.go:13
↓ 2 callers
Method
Combined
Combined returns a new Payload that is the same except that the inluding logic is performed on its configs. This means that the resulting Payload will
types.go:55
↓ 2 callers
Method
IsComment
IsComment returns true iff the directive represents a comment.
types.go:48
↓ 2 callers
Function
equalBlocks
(b1, b2 []Directive)
build_test.go:466
↓ 2 callers
Function
equalPayloads
(p1, p2 Payload)
build_test.go:413
↓ 2 callers
Function
lex
(reader io.Reader)
lex.go:21
↓ 2 callers
Function
margin
(options *BuildOptions, depth int)
build.go:124
↓ 2 callers
Function
noSuchFileErrMsg
()
parse_test.go:26
↓ 2 callers
Function
validFlag
(s string)
util.go:40
↓ 1 callers
Function
BuildFiles
BuildFiles builds all of the config files in a crossplane.Payload and writes them to disk.
build.go:20
↓ 1 callers
Method
IsBlock
IsBlock returns true if this is a block directive.
types.go:38
↓ 1 callers
Method
IsInclude
IsInclude returns true if this is an include directive.
types.go:43
↓ 1 callers
Function
balanceBraces
(tokens chan ngxToken)
lex.go:25
↓ 1 callers
Function
buildBlock
(output string, block []Directive, depth int, lastLine int, options *BuildOptions)
build.go:82
↓ 1 callers
Function
combineConfigs
combineConfigs combines config files into one by using include directives.
util.go:63
↓ 1 callers
Function
contains
(xs []string, x string)
util.go:14
↓ 1 callers
Function
enterBlockCtx
(stmt Directive, ctx blockCtx)
analyze.go:71
↓ 1 callers
Function
equalConfigErrors
(e1, e2 []ConfigError)
build_test.go:452
↓ 1 callers
Function
equalConfigs
(c1, c2 Config)
build_test.go:446
↓ 1 callers
Function
equalDirectives
(d1, d2 Directive)
build_test.go:478
↓ 1 callers
Function
equalPayloadConfigs
(c1, c2 []Config)
build_test.go:434
↓ 1 callers
Function
equalPayloadErrors
(e1, e2 []PayloadError)
build_test.go:419
↓ 1 callers
Function
escape
(s string)
build.go:176
↓ 1 callers
Function
escapeChars
(chars chan string)
lex.go:211
↓ 1 callers
Function
lineCount
(chars chan string)
lex.go:194
↓ 1 callers
Function
needsQuotes
(s string)
build.go:139
↓ 1 callers
Method
parse
parse Recursively parses directives from an nginx config context.
parse.go:152
↓ 1 callers
Function
performIncludes
(old Payload, fromfile string, block []Directive)
util.go:106
↓ 1 callers
Function
prepareIfArgs
prepareIfArgs removes parentheses from an `if` directive's arguments.
util.go:46
↓ 1 callers
Function
readChars
(reader io.Reader)
lex.go:179
↓ 1 callers
Function
repr
(s string)
util.go:27
↓ 1 callers
Function
tokenize
(reader io.Reader)
lex.go:69
Function
TestAnalyze
(t *testing.T)
analyze_test.go:8
Function
TestBuild
(t *testing.T)
build_test.go:256
Function
TestBuildFiles
(t *testing.T)
build_test.go:316
Function
TestCompareParsedAndBuilt
(t *testing.T)
build_test.go:352
Function
TestLex
(t *testing.T)
lex_test.go:222
Function
TestParse
(t *testing.T)
parse_test.go:929
Function
TestPayload
(t *testing.T)
util_test.go:8
Function
main
()
cmd/parse/main.go:12