id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
listlengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
listlengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
25,000
Shopify/go-lua
auxiliary.go
MetaField
func MetaField(l *State, index int, event string) bool { if !l.MetaTable(index) { return false } l.PushString(event) l.RawGet(-2) if l.IsNil(-1) { l.Pop(2) // remove metatable and metafield return false } l.Remove(-2) // remove only metatable return true }
go
func MetaField(l *State, index int, event string) bool { if !l.MetaTable(index) { return false } l.PushString(event) l.RawGet(-2) if l.IsNil(-1) { l.Pop(2) // remove metatable and metafield return false } l.Remove(-2) // remove only metatable return true }
[ "func", "MetaField", "(", "l", "*", "State", ",", "index", "int", ",", "event", "string", ")", "bool", "{", "if", "!", "l", ".", "MetaTable", "(", "index", ")", "{", "return", "false", "\n", "}", "\n", "l", ".", "PushString", "(", "event", ")", "...
// MetaField pushes onto the stack the field event from the metatable of the // object at index. If the object does not have a metatable, or if the // metatable does not have this field, returns false and pushes nothing.
[ "MetaField", "pushes", "onto", "the", "stack", "the", "field", "event", "from", "the", "metatable", "of", "the", "object", "at", "index", ".", "If", "the", "object", "does", "not", "have", "a", "metatable", "or", "if", "the", "metatable", "does", "not", ...
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L82-L94
25,001
Shopify/go-lua
auxiliary.go
NewMetaTable
func NewMetaTable(l *State, name string) bool { if MetaTableNamed(l, name); !l.IsNil(-1) { return false } l.Pop(1) l.NewTable() l.PushValue(-1) l.SetField(RegistryIndex, name) return true }
go
func NewMetaTable(l *State, name string) bool { if MetaTableNamed(l, name); !l.IsNil(-1) { return false } l.Pop(1) l.NewTable() l.PushValue(-1) l.SetField(RegistryIndex, name) return true }
[ "func", "NewMetaTable", "(", "l", "*", "State", ",", "name", "string", ")", "bool", "{", "if", "MetaTableNamed", "(", "l", ",", "name", ")", ";", "!", "l", ".", "IsNil", "(", "-", "1", ")", "{", "return", "false", "\n", "}", "\n", "l", ".", "Po...
// NewMetaTable returns false if the registry already has the key name. Otherwise, // creates a new table to be used as a metatable for userdata, adds it to the // registry with key name, and returns true. // // In both cases it pushes onto the stack the final value associated with name in // the registry.
[ "NewMetaTable", "returns", "false", "if", "the", "registry", "already", "has", "the", "key", "name", ".", "Otherwise", "creates", "a", "new", "table", "to", "be", "used", "as", "a", "metatable", "for", "userdata", "adds", "it", "to", "the", "registry", "wi...
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L249-L258
25,002
Shopify/go-lua
auxiliary.go
CheckType
func CheckType(l *State, index int, t Type) { if l.TypeOf(index) != t { tagError(l, index, t) } }
go
func CheckType(l *State, index int, t Type) { if l.TypeOf(index) != t { tagError(l, index, t) } }
[ "func", "CheckType", "(", "l", "*", "State", ",", "index", "int", ",", "t", "Type", ")", "{", "if", "l", ".", "TypeOf", "(", "index", ")", "!=", "t", "{", "tagError", "(", "l", ",", "index", ",", "t", ")", "\n", "}", "\n", "}" ]
// CheckType checks whether the function argument at index has type t. See Type for the encoding of types for t.
[ "CheckType", "checks", "whether", "the", "function", "argument", "at", "index", "has", "type", "t", ".", "See", "Type", "for", "the", "encoding", "of", "types", "for", "t", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L294-L298
25,003
Shopify/go-lua
auxiliary.go
ArgumentCheck
func ArgumentCheck(l *State, cond bool, index int, extraMessage string) { if !cond { ArgumentError(l, index, extraMessage) } }
go
func ArgumentCheck(l *State, cond bool, index int, extraMessage string) { if !cond { ArgumentError(l, index, extraMessage) } }
[ "func", "ArgumentCheck", "(", "l", "*", "State", ",", "cond", "bool", ",", "index", "int", ",", "extraMessage", "string", ")", "{", "if", "!", "cond", "{", "ArgumentError", "(", "l", ",", "index", ",", "extraMessage", ")", "\n", "}", "\n", "}" ]
// ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.
[ "ArgumentCheck", "checks", "whether", "cond", "is", "true", ".", "If", "not", "raises", "an", "error", "with", "a", "standard", "message", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L308-L312
25,004
Shopify/go-lua
auxiliary.go
CheckString
func CheckString(l *State, index int) string { if s, ok := l.ToString(index); ok { return s } tagError(l, index, TypeString) panic("unreachable") }
go
func CheckString(l *State, index int) string { if s, ok := l.ToString(index); ok { return s } tagError(l, index, TypeString) panic("unreachable") }
[ "func", "CheckString", "(", "l", "*", "State", ",", "index", "int", ")", "string", "{", "if", "s", ",", "ok", ":=", "l", ".", "ToString", "(", "index", ")", ";", "ok", "{", "return", "s", "\n", "}", "\n", "tagError", "(", "l", ",", "index", ","...
// CheckString checks whether the function argument at index is a string and returns this string. // // This function uses ToString to get its result, so all conversions and caveats of that function apply here.
[ "CheckString", "checks", "whether", "the", "function", "argument", "at", "index", "is", "a", "string", "and", "returns", "this", "string", ".", "This", "function", "uses", "ToString", "to", "get", "its", "result", "so", "all", "conversions", "and", "caveats", ...
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L317-L323
25,005
Shopify/go-lua
auxiliary.go
OptString
func OptString(l *State, index int, def string) string { if l.IsNoneOrNil(index) { return def } return CheckString(l, index) }
go
func OptString(l *State, index int, def string) string { if l.IsNoneOrNil(index) { return def } return CheckString(l, index) }
[ "func", "OptString", "(", "l", "*", "State", ",", "index", "int", ",", "def", "string", ")", "string", "{", "if", "l", ".", "IsNoneOrNil", "(", "index", ")", "{", "return", "def", "\n", "}", "\n", "return", "CheckString", "(", "l", ",", "index", ")...
// OptString returns the string at index if it is a string. If this argument is // absent or is nil, returns def. Otherwise, raises an error.
[ "OptString", "returns", "the", "string", "at", "index", "if", "it", "is", "a", "string", ".", "If", "this", "argument", "is", "absent", "or", "is", "nil", "returns", "def", ".", "Otherwise", "raises", "an", "error", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L327-L332
25,006
Shopify/go-lua
auxiliary.go
NewStateEx
func NewStateEx() *State { l := NewState() if l != nil { _ = AtPanic(l, func(l *State) int { s, _ := l.ToString(-1) fmt.Fprintf(os.Stderr, "PANIC: unprotected error in call to Lua API (%s)\n", s) return 0 }) } return l }
go
func NewStateEx() *State { l := NewState() if l != nil { _ = AtPanic(l, func(l *State) int { s, _ := l.ToString(-1) fmt.Fprintf(os.Stderr, "PANIC: unprotected error in call to Lua API (%s)\n", s) return 0 }) } return l }
[ "func", "NewStateEx", "(", ")", "*", "State", "{", "l", ":=", "NewState", "(", ")", "\n", "if", "l", "!=", "nil", "{", "_", "=", "AtPanic", "(", "l", ",", "func", "(", "l", "*", "State", ")", "int", "{", "s", ",", "_", ":=", "l", ".", "ToSt...
// NewStateEx creates a new Lua state. It calls NewState and then sets a panic // function that prints an error message to the standard error output in case // of fatal errors. // // Returns the new state.
[ "NewStateEx", "creates", "a", "new", "Lua", "state", ".", "It", "calls", "NewState", "and", "then", "sets", "a", "panic", "function", "that", "prints", "an", "error", "message", "to", "the", "standard", "error", "output", "in", "case", "of", "fatal", "erro...
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L536-L546
25,007
Shopify/go-lua
auxiliary.go
DoFile
func DoFile(l *State, fileName string) error { if err := LoadFile(l, fileName, ""); err != nil { return err } return l.ProtectedCall(0, MultipleReturns, 0) }
go
func DoFile(l *State, fileName string) error { if err := LoadFile(l, fileName, ""); err != nil { return err } return l.ProtectedCall(0, MultipleReturns, 0) }
[ "func", "DoFile", "(", "l", "*", "State", ",", "fileName", "string", ")", "error", "{", "if", "err", ":=", "LoadFile", "(", "l", ",", "fileName", ",", "\"", "\"", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "return", "l",...
// DoFile loads and runs the given file.
[ "DoFile", "loads", "and", "runs", "the", "given", "file", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L576-L581
25,008
Shopify/go-lua
auxiliary.go
DoString
func DoString(l *State, s string) error { if err := LoadString(l, s); err != nil { return err } return l.ProtectedCall(0, MultipleReturns, 0) }
go
func DoString(l *State, s string) error { if err := LoadString(l, s); err != nil { return err } return l.ProtectedCall(0, MultipleReturns, 0) }
[ "func", "DoString", "(", "l", "*", "State", ",", "s", "string", ")", "error", "{", "if", "err", ":=", "LoadString", "(", "l", ",", "s", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "return", "l", ".", "ProtectedCall", "(",...
// DoString loads and runs the given string.
[ "DoString", "loads", "and", "runs", "the", "given", "string", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/auxiliary.go#L584-L589
25,009
Shopify/go-lua
stack.go
call
func (l *State) call(function int, resultCount int, allowYield bool) { if l.nestedGoCallCount++; l.nestedGoCallCount == maxCallCount { l.runtimeError("Go stack overflow") } else if l.nestedGoCallCount >= maxCallCount+maxCallCount>>3 { l.throw(ErrorError) // error while handling stack error } if !allowYield { ...
go
func (l *State) call(function int, resultCount int, allowYield bool) { if l.nestedGoCallCount++; l.nestedGoCallCount == maxCallCount { l.runtimeError("Go stack overflow") } else if l.nestedGoCallCount >= maxCallCount+maxCallCount>>3 { l.throw(ErrorError) // error while handling stack error } if !allowYield { ...
[ "func", "(", "l", "*", "State", ")", "call", "(", "function", "int", ",", "resultCount", "int", ",", "allowYield", "bool", ")", "{", "if", "l", ".", "nestedGoCallCount", "++", ";", "l", ".", "nestedGoCallCount", "==", "maxCallCount", "{", "l", ".", "ru...
// Call a Go or Lua function. The function to be called is at function. // The arguments are on the stack, right after the function. On return, all the // results are on the stack, starting at the original function position.
[ "Call", "a", "Go", "or", "Lua", "function", ".", "The", "function", "to", "be", "called", "is", "at", "function", ".", "The", "arguments", "are", "on", "the", "stack", "right", "after", "the", "function", ".", "On", "return", "all", "the", "results", "...
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/stack.go#L371-L387
25,010
Shopify/go-lua
load.go
PackageOpen
func PackageOpen(l *State) int { NewLibrary(l, packageLibrary) createSearchersTable(l) l.SetField(-2, "searchers") setPath(l, "path", "LUA_PATH", defaultPath) l.PushString(fmt.Sprintf("%c\n%c\n?\n!\n-\n", filepath.Separator, pathListSeparator)) l.SetField(-2, "config") SubTable(l, RegistryIndex, "_LOADED") l.Se...
go
func PackageOpen(l *State) int { NewLibrary(l, packageLibrary) createSearchersTable(l) l.SetField(-2, "searchers") setPath(l, "path", "LUA_PATH", defaultPath) l.PushString(fmt.Sprintf("%c\n%c\n?\n!\n-\n", filepath.Separator, pathListSeparator)) l.SetField(-2, "config") SubTable(l, RegistryIndex, "_LOADED") l.Se...
[ "func", "PackageOpen", "(", "l", "*", "State", ")", "int", "{", "NewLibrary", "(", "l", ",", "packageLibrary", ")", "\n", "createSearchersTable", "(", "l", ")", "\n", "l", ".", "SetField", "(", "-", "2", ",", "\"", "\"", ")", "\n", "setPath", "(", ...
// PackageOpen opens the package library. Usually passed to Require.
[ "PackageOpen", "opens", "the", "package", "library", ".", "Usually", "passed", "to", "Require", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/load.go#L152-L191
25,011
Shopify/go-lua
base.go
BaseOpen
func BaseOpen(l *State) int { l.PushGlobalTable() l.PushGlobalTable() l.SetField(-2, "_G") SetFunctions(l, baseLibrary, 0) l.PushString(VersionString) l.SetField(-2, "_VERSION") return 1 }
go
func BaseOpen(l *State) int { l.PushGlobalTable() l.PushGlobalTable() l.SetField(-2, "_G") SetFunctions(l, baseLibrary, 0) l.PushString(VersionString) l.SetField(-2, "_VERSION") return 1 }
[ "func", "BaseOpen", "(", "l", "*", "State", ")", "int", "{", "l", ".", "PushGlobalTable", "(", ")", "\n", "l", ".", "PushGlobalTable", "(", ")", "\n", "l", ".", "SetField", "(", "-", "2", ",", "\"", "\"", ")", "\n", "SetFunctions", "(", "l", ",",...
// BaseOpen opens the basic library. Usually passed to Require.
[ "BaseOpen", "opens", "the", "basic", "library", ".", "Usually", "passed", "to", "Require", "." ]
48449c60c0a91cdc83cf554aa0931380393b9b02
https://github.com/Shopify/go-lua/blob/48449c60c0a91cdc83cf554aa0931380393b9b02/base.go#L322-L330
25,012
apex/apex
logs/log.go
start
func (l *Log) start(ch chan<- *Event) { defer close(ch) l.Log.Debug("enter") defer l.Log.Debug("exit") var start = l.StartTime.UnixNano() / int64(time.Millisecond) var nextToken *string var err error for { l.Log.WithField("start", start).Debug("request") nextToken, start, err = l.fetch(nextToken, start, c...
go
func (l *Log) start(ch chan<- *Event) { defer close(ch) l.Log.Debug("enter") defer l.Log.Debug("exit") var start = l.StartTime.UnixNano() / int64(time.Millisecond) var nextToken *string var err error for { l.Log.WithField("start", start).Debug("request") nextToken, start, err = l.fetch(nextToken, start, c...
[ "func", "(", "l", "*", "Log", ")", "start", "(", "ch", "chan", "<-", "*", "Event", ")", "{", "defer", "close", "(", "ch", ")", "\n\n", "l", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n", "defer", "l", ".", "Log", ".", "Debug", "(", "...
// start consuming and exit after pagination if Follow is not enabled.
[ "start", "consuming", "and", "exit", "after", "pagination", "if", "Follow", "is", "not", "enabled", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/logs/log.go#L29-L58
25,013
apex/apex
logs/log.go
fetch
func (l *Log) fetch(nextToken *string, start int64, ch chan<- *Event) (*string, int64, error) { res, err := l.Service.FilterLogEvents(&cloudwatchlogs.FilterLogEventsInput{ LogGroupName: &l.GroupName, FilterPattern: &l.FilterPattern, StartTime: &start, NextToken: nextToken, }) if e, ok := err.(awser...
go
func (l *Log) fetch(nextToken *string, start int64, ch chan<- *Event) (*string, int64, error) { res, err := l.Service.FilterLogEvents(&cloudwatchlogs.FilterLogEventsInput{ LogGroupName: &l.GroupName, FilterPattern: &l.FilterPattern, StartTime: &start, NextToken: nextToken, }) if e, ok := err.(awser...
[ "func", "(", "l", "*", "Log", ")", "fetch", "(", "nextToken", "*", "string", ",", "start", "int64", ",", "ch", "chan", "<-", "*", "Event", ")", "(", "*", "string", ",", "int64", ",", "error", ")", "{", "res", ",", "err", ":=", "l", ".", "Servic...
// fetch logs relative to the given token and start time. We ignore when the log group is not found.
[ "fetch", "logs", "relative", "to", "the", "given", "token", "and", "start", "time", ".", "We", "ignore", "when", "the", "log", "group", "is", "not", "found", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/logs/log.go#L61-L89
25,014
apex/apex
function/function.go
Open
func (f *Function) Open(environment string) error { f.defaults() f.Log = f.Log.WithFields(log.Fields{ "function": f.Name, "env": environment, }) f.Log.Debug("open") if err := f.loadConfig(environment); err != nil { return errors.Wrap(err, "loading config") } if err := f.hookOpen(); err != nil { ...
go
func (f *Function) Open(environment string) error { f.defaults() f.Log = f.Log.WithFields(log.Fields{ "function": f.Name, "env": environment, }) f.Log.Debug("open") if err := f.loadConfig(environment); err != nil { return errors.Wrap(err, "loading config") } if err := f.hookOpen(); err != nil { ...
[ "func", "(", "f", "*", "Function", ")", "Open", "(", "environment", "string", ")", "error", "{", "f", ".", "defaults", "(", ")", "\n\n", "f", ".", "Log", "=", "f", ".", "Log", ".", "WithFields", "(", "log", ".", "Fields", "{", "\"", "\"", ":", ...
// Open the function.json file and prime the config.
[ "Open", "the", "function", ".", "json", "file", "and", "prime", "the", "config", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L122-L153
25,015
apex/apex
function/function.go
loadConfig
func (f *Function) loadConfig(environment string) error { path := fmt.Sprintf("function.%s.json", environment) ok, err := f.tryConfig(path) if err != nil { return err } if ok { f.Log.WithField("config", path).Debug("loaded config") return nil } ok, err = f.tryConfig("function.json") if err != nil { r...
go
func (f *Function) loadConfig(environment string) error { path := fmt.Sprintf("function.%s.json", environment) ok, err := f.tryConfig(path) if err != nil { return err } if ok { f.Log.WithField("config", path).Debug("loaded config") return nil } ok, err = f.tryConfig("function.json") if err != nil { r...
[ "func", "(", "f", "*", "Function", ")", "loadConfig", "(", "environment", "string", ")", "error", "{", "path", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "environment", ")", "\n\n", "ok", ",", "err", ":=", "f", ".", "tryConfig", "(", "path", ...
// loadConfig for `environment`, attempt function.ENV.js first, then // fall back on function.json if it is available.
[ "loadConfig", "for", "environment", "attempt", "function", ".", "ENV", ".", "js", "first", "then", "fall", "back", "on", "function", ".", "json", "if", "it", "is", "available", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L183-L207
25,016
apex/apex
function/function.go
Setenv
func (f *Function) Setenv(name, value string) { f.Environment[name] = value }
go
func (f *Function) Setenv(name, value string) { f.Environment[name] = value }
[ "func", "(", "f", "*", "Function", ")", "Setenv", "(", "name", ",", "value", "string", ")", "{", "f", ".", "Environment", "[", "name", "]", "=", "value", "\n", "}" ]
// Setenv sets environment variable `name` to `value`.
[ "Setenv", "sets", "environment", "variable", "name", "to", "value", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L228-L230
25,017
apex/apex
function/function.go
Deploy
func (f *Function) Deploy() error { f.Log.Debug("deploying") zip, err := f.ZipBytes() if err != nil { return err } if err := f.hookDeploy(); err != nil { return err } config, err := f.GetConfig() if e, ok := err.(awserr.Error); ok { if e.Code() == "ResourceNotFoundException" { return f.Create(zip) ...
go
func (f *Function) Deploy() error { f.Log.Debug("deploying") zip, err := f.ZipBytes() if err != nil { return err } if err := f.hookDeploy(); err != nil { return err } config, err := f.GetConfig() if e, ok := err.(awserr.Error); ok { if e.Code() == "ResourceNotFoundException" { return f.Create(zip) ...
[ "func", "(", "f", "*", "Function", ")", "Deploy", "(", ")", "error", "{", "f", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n\n", "zip", ",", "err", ":=", "f", ".", "ZipBytes", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "er...
// Deploy generates a zip and creates or deploy the function. // If the configuration hasn't been changed it will deploy only code, // otherwise it will deploy both configuration and code.
[ "Deploy", "generates", "a", "zip", "and", "creates", "or", "deploy", "the", "function", ".", "If", "the", "configuration", "hasn", "t", "been", "changed", "it", "will", "deploy", "only", "code", "otherwise", "it", "will", "deploy", "both", "configuration", "...
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L235-L266
25,018
apex/apex
function/function.go
DeployCode
func (f *Function) DeployCode(zip []byte, config *lambda.GetFunctionOutput) error { remoteHash := *config.Configuration.CodeSha256 localHash := utils.Sha256(zip) if localHash == remoteHash { f.Log.Info("code unchanged") version := config.Configuration.Version // Creating an alias to $LATEST would mean its t...
go
func (f *Function) DeployCode(zip []byte, config *lambda.GetFunctionOutput) error { remoteHash := *config.Configuration.CodeSha256 localHash := utils.Sha256(zip) if localHash == remoteHash { f.Log.Info("code unchanged") version := config.Configuration.Version // Creating an alias to $LATEST would mean its t...
[ "func", "(", "f", "*", "Function", ")", "DeployCode", "(", "zip", "[", "]", "byte", ",", "config", "*", "lambda", ".", "GetFunctionOutput", ")", "error", "{", "remoteHash", ":=", "*", "config", ".", "Configuration", ".", "CodeSha256", "\n", "localHash", ...
// DeployCode deploys function code when changed.
[ "DeployCode", "deploys", "function", "code", "when", "changed", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L269-L298
25,019
apex/apex
function/function.go
DeployConfigAndCode
func (f *Function) DeployConfigAndCode(zip []byte) error { f.Log.Info("updating config") params := &lambda.UpdateFunctionConfigurationInput{ FunctionName: &f.FunctionName, MemorySize: &f.Memory, Timeout: &f.Timeout, Description: &f.Description, Role: &f.Role, Runtime: &f.Runtime, H...
go
func (f *Function) DeployConfigAndCode(zip []byte) error { f.Log.Info("updating config") params := &lambda.UpdateFunctionConfigurationInput{ FunctionName: &f.FunctionName, MemorySize: &f.Memory, Timeout: &f.Timeout, Description: &f.Description, Role: &f.Role, Runtime: &f.Runtime, H...
[ "func", "(", "f", "*", "Function", ")", "DeployConfigAndCode", "(", "zip", "[", "]", "byte", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n\n", "params", ":=", "&", "lambda", ".", "UpdateFunctionConfigurationInput", "{", "Fu...
// DeployConfigAndCode updates config and updates function code.
[ "DeployConfigAndCode", "updates", "config", "and", "updates", "function", "code", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L301-L332
25,020
apex/apex
function/function.go
Delete
func (f *Function) Delete() error { f.Log.Info("deleting") _, err := f.Service.DeleteFunction(&lambda.DeleteFunctionInput{ FunctionName: &f.FunctionName, }) if err != nil { return err } f.Log.Info("function deleted") return nil }
go
func (f *Function) Delete() error { f.Log.Info("deleting") _, err := f.Service.DeleteFunction(&lambda.DeleteFunctionInput{ FunctionName: &f.FunctionName, }) if err != nil { return err } f.Log.Info("function deleted") return nil }
[ "func", "(", "f", "*", "Function", ")", "Delete", "(", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n", "_", ",", "err", ":=", "f", ".", "Service", ".", "DeleteFunction", "(", "&", "lambda", ".", "DeleteFunctionInput", ...
// Delete the function including all its versions
[ "Delete", "the", "function", "including", "all", "its", "versions" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L335-L348
25,021
apex/apex
function/function.go
GetConfig
func (f *Function) GetConfig() (*lambda.GetFunctionOutput, error) { f.Log.Debug("fetching config") return f.Service.GetFunction(&lambda.GetFunctionInput{ FunctionName: &f.FunctionName, }) }
go
func (f *Function) GetConfig() (*lambda.GetFunctionOutput, error) { f.Log.Debug("fetching config") return f.Service.GetFunction(&lambda.GetFunctionInput{ FunctionName: &f.FunctionName, }) }
[ "func", "(", "f", "*", "Function", ")", "GetConfig", "(", ")", "(", "*", "lambda", ".", "GetFunctionOutput", ",", "error", ")", "{", "f", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n", "return", "f", ".", "Service", ".", "GetFunction", "(", ...
// GetConfig returns the function configuration.
[ "GetConfig", "returns", "the", "function", "configuration", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L351-L356
25,022
apex/apex
function/function.go
GetConfigQualifier
func (f *Function) GetConfigQualifier(s string) (*lambda.GetFunctionOutput, error) { f.Log.Debug("fetching config") return f.Service.GetFunction(&lambda.GetFunctionInput{ FunctionName: &f.FunctionName, Qualifier: &s, }) }
go
func (f *Function) GetConfigQualifier(s string) (*lambda.GetFunctionOutput, error) { f.Log.Debug("fetching config") return f.Service.GetFunction(&lambda.GetFunctionInput{ FunctionName: &f.FunctionName, Qualifier: &s, }) }
[ "func", "(", "f", "*", "Function", ")", "GetConfigQualifier", "(", "s", "string", ")", "(", "*", "lambda", ".", "GetFunctionOutput", ",", "error", ")", "{", "f", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n", "return", "f", ".", "Service", "...
// GetConfigQualifier returns the function configuration for the given qualifier.
[ "GetConfigQualifier", "returns", "the", "function", "configuration", "for", "the", "given", "qualifier", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L359-L365
25,023
apex/apex
function/function.go
GetConfigCurrent
func (f *Function) GetConfigCurrent() (*lambda.GetFunctionOutput, error) { return f.GetConfigQualifier(f.Alias) }
go
func (f *Function) GetConfigCurrent() (*lambda.GetFunctionOutput, error) { return f.GetConfigQualifier(f.Alias) }
[ "func", "(", "f", "*", "Function", ")", "GetConfigCurrent", "(", ")", "(", "*", "lambda", ".", "GetFunctionOutput", ",", "error", ")", "{", "return", "f", ".", "GetConfigQualifier", "(", "f", ".", "Alias", ")", "\n", "}" ]
// GetConfigCurrent returns the function configuration for the current version.
[ "GetConfigCurrent", "returns", "the", "function", "configuration", "for", "the", "current", "version", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L368-L370
25,024
apex/apex
function/function.go
Update
func (f *Function) Update(zip []byte) error { f.Log.Info("updating function") updated, err := f.Service.UpdateFunctionCode(&lambda.UpdateFunctionCodeInput{ FunctionName: &f.FunctionName, Publish: aws.Bool(true), ZipFile: zip, }) if err != nil { return err } if err := f.CreateOrUpdateAlias(f.A...
go
func (f *Function) Update(zip []byte) error { f.Log.Info("updating function") updated, err := f.Service.UpdateFunctionCode(&lambda.UpdateFunctionCodeInput{ FunctionName: &f.FunctionName, Publish: aws.Bool(true), ZipFile: zip, }) if err != nil { return err } if err := f.CreateOrUpdateAlias(f.A...
[ "func", "(", "f", "*", "Function", ")", "Update", "(", "zip", "[", "]", "byte", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n\n", "updated", ",", "err", ":=", "f", ".", "Service", ".", "UpdateFunctionCode", "(", "&", ...
// Update the function with the given `zip`.
[ "Update", "the", "function", "with", "the", "given", "zip", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L373-L396
25,025
apex/apex
function/function.go
Create
func (f *Function) Create(zip []byte) error { f.Log.Info("creating function") params := &lambda.CreateFunctionInput{ FunctionName: &f.FunctionName, Description: &f.Description, MemorySize: &f.Memory, Timeout: &f.Timeout, Runtime: &f.Runtime, Handler: &f.Handler, Role: &f.Role,...
go
func (f *Function) Create(zip []byte) error { f.Log.Info("creating function") params := &lambda.CreateFunctionInput{ FunctionName: &f.FunctionName, Description: &f.Description, MemorySize: &f.Memory, Timeout: &f.Timeout, Runtime: &f.Runtime, Handler: &f.Handler, Role: &f.Role,...
[ "func", "(", "f", "*", "Function", ")", "Create", "(", "zip", "[", "]", "byte", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n\n", "params", ":=", "&", "lambda", ".", "CreateFunctionInput", "{", "FunctionName", ":", "&",...
// Create the function with the given `zip`.
[ "Create", "the", "function", "with", "the", "given", "zip", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L399-L443
25,026
apex/apex
function/function.go
CreateOrUpdateAlias
func (f *Function) CreateOrUpdateAlias(alias, version string) error { _, err := f.Service.CreateAlias(&lambda.CreateAliasInput{ FunctionName: &f.FunctionName, FunctionVersion: &version, Name: &alias, }) if err == nil { f.Log.WithField("version", version).Infof("created alias %s", alias) retu...
go
func (f *Function) CreateOrUpdateAlias(alias, version string) error { _, err := f.Service.CreateAlias(&lambda.CreateAliasInput{ FunctionName: &f.FunctionName, FunctionVersion: &version, Name: &alias, }) if err == nil { f.Log.WithField("version", version).Infof("created alias %s", alias) retu...
[ "func", "(", "f", "*", "Function", ")", "CreateOrUpdateAlias", "(", "alias", ",", "version", "string", ")", "error", "{", "_", ",", "err", ":=", "f", ".", "Service", ".", "CreateAlias", "(", "&", "lambda", ".", "CreateAliasInput", "{", "FunctionName", ":...
// CreateOrUpdateAlias attempts creating the alias, or updates if it already exists.
[ "CreateOrUpdateAlias", "attempts", "creating", "the", "alias", "or", "updates", "if", "it", "already", "exists", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L446-L474
25,027
apex/apex
function/function.go
GetAliases
func (f *Function) GetAliases() (*lambda.ListAliasesOutput, error) { f.Log.Debug("fetching aliases") return f.Service.ListAliases(&lambda.ListAliasesInput{ FunctionName: &f.FunctionName, }) }
go
func (f *Function) GetAliases() (*lambda.ListAliasesOutput, error) { f.Log.Debug("fetching aliases") return f.Service.ListAliases(&lambda.ListAliasesInput{ FunctionName: &f.FunctionName, }) }
[ "func", "(", "f", "*", "Function", ")", "GetAliases", "(", ")", "(", "*", "lambda", ".", "ListAliasesOutput", ",", "error", ")", "{", "f", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n", "return", "f", ".", "Service", ".", "ListAliases", "(",...
// GetAliases fetches a list of aliases for the function.
[ "GetAliases", "fetches", "a", "list", "of", "aliases", "for", "the", "function", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L477-L482
25,028
apex/apex
function/function.go
Invoke
func (f *Function) Invoke(event, context interface{}) (reply, logs io.Reader, err error) { eventBytes, err := json.Marshal(event) if err != nil { return nil, nil, err } contextBytes, err := json.Marshal(context) if err != nil { return nil, nil, err } res, err := f.Service.Invoke(&lambda.InvokeInput{ Clie...
go
func (f *Function) Invoke(event, context interface{}) (reply, logs io.Reader, err error) { eventBytes, err := json.Marshal(event) if err != nil { return nil, nil, err } contextBytes, err := json.Marshal(context) if err != nil { return nil, nil, err } res, err := f.Service.Invoke(&lambda.InvokeInput{ Clie...
[ "func", "(", "f", "*", "Function", ")", "Invoke", "(", "event", ",", "context", "interface", "{", "}", ")", "(", "reply", ",", "logs", "io", ".", "Reader", ",", "err", "error", ")", "{", "eventBytes", ",", "err", ":=", "json", ".", "Marshal", "(", ...
// Invoke the remote Lambda function, returning the response and logs, if any.
[ "Invoke", "the", "remote", "Lambda", "function", "returning", "the", "response", "and", "logs", "if", "any", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L485-L525
25,029
apex/apex
function/function.go
Rollback
func (f *Function) Rollback() error { f.Log.Info("rolling back") alias, err := f.currentVersionAlias() if err != nil { return err } f.Log.Debugf("current version: %s", *alias.FunctionVersion) versions, err := f.versions() if err != nil { return err } if len(versions) < 2 { return errors.New("Can't ro...
go
func (f *Function) Rollback() error { f.Log.Info("rolling back") alias, err := f.currentVersionAlias() if err != nil { return err } f.Log.Debugf("current version: %s", *alias.FunctionVersion) versions, err := f.versions() if err != nil { return err } if len(versions) < 2 { return errors.New("Can't ro...
[ "func", "(", "f", "*", "Function", ")", "Rollback", "(", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n\n", "alias", ",", "err", ":=", "f", ".", "currentVersionAlias", "(", ")", "\n", "if", "err", "!=", "nil", "{", "...
// Rollback the function to the previous.
[ "Rollback", "the", "function", "to", "the", "previous", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L528-L570
25,030
apex/apex
function/function.go
RollbackVersion
func (f *Function) RollbackVersion(version string) error { f.Log.Info("rolling back") alias, err := f.currentVersionAlias() if err != nil { return err } f.Log.Debugf("current version: %s", *alias.FunctionVersion) if version == *alias.FunctionVersion { return errors.New("Specified version currently deployed...
go
func (f *Function) RollbackVersion(version string) error { f.Log.Info("rolling back") alias, err := f.currentVersionAlias() if err != nil { return err } f.Log.Debugf("current version: %s", *alias.FunctionVersion) if version == *alias.FunctionVersion { return errors.New("Specified version currently deployed...
[ "func", "(", "f", "*", "Function", ")", "RollbackVersion", "(", "version", "string", ")", "error", "{", "f", ".", "Log", ".", "Info", "(", "\"", "\"", ")", "\n\n", "alias", ",", "err", ":=", "f", ".", "currentVersionAlias", "(", ")", "\n", "if", "e...
// RollbackVersion the function to the specified version.
[ "RollbackVersion", "the", "function", "to", "the", "specified", "version", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L573-L602
25,031
apex/apex
function/function.go
ZipBytes
func (f *Function) ZipBytes() ([]byte, error) { if f.Zip == "" { f.Log.Debug("building zip") return f.BuildBytes() } f.Log.Debugf("reading zip %q", f.Zip) return ioutil.ReadFile(f.Zip) }
go
func (f *Function) ZipBytes() ([]byte, error) { if f.Zip == "" { f.Log.Debug("building zip") return f.BuildBytes() } f.Log.Debugf("reading zip %q", f.Zip) return ioutil.ReadFile(f.Zip) }
[ "func", "(", "f", "*", "Function", ")", "ZipBytes", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "f", ".", "Zip", "==", "\"", "\"", "{", "f", ".", "Log", ".", "Debug", "(", "\"", "\"", ")", "\n", "return", "f", ".", "Build...
// ZipBytes builds the in-memory zip, or reads // the .Zip from disk if specified.
[ "ZipBytes", "builds", "the", "in", "-", "memory", "zip", "or", "reads", "the", ".", "Zip", "from", "disk", "if", "specified", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L606-L614
25,032
apex/apex
function/function.go
BuildBytes
func (f *Function) BuildBytes() ([]byte, error) { r, err := f.Build() if err != nil { return nil, err } b, err := ioutil.ReadAll(r) if err != nil { return nil, err } f.Log.Debugf("created build (%s)", humanize.Bytes(uint64(len(b)))) return b, nil }
go
func (f *Function) BuildBytes() ([]byte, error) { r, err := f.Build() if err != nil { return nil, err } b, err := ioutil.ReadAll(r) if err != nil { return nil, err } f.Log.Debugf("created build (%s)", humanize.Bytes(uint64(len(b)))) return b, nil }
[ "func", "(", "f", "*", "Function", ")", "BuildBytes", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "r", ",", "err", ":=", "f", ".", "Build", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", ...
// BuildBytes returns the generated zip as bytes.
[ "BuildBytes", "returns", "the", "generated", "zip", "as", "bytes", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L617-L630
25,033
apex/apex
function/function.go
Build
func (f *Function) Build() (io.Reader, error) { f.Log.Debugf("creating build") buf := new(bytes.Buffer) zip := archive.NewZip(buf) if err := f.hookBuild(zip); err != nil { return nil, err } paths, err := utils.LoadFiles(f.Path, f.IgnoreFile) if err != nil { return nil, err } for _, path := range paths ...
go
func (f *Function) Build() (io.Reader, error) { f.Log.Debugf("creating build") buf := new(bytes.Buffer) zip := archive.NewZip(buf) if err := f.hookBuild(zip); err != nil { return nil, err } paths, err := utils.LoadFiles(f.Path, f.IgnoreFile) if err != nil { return nil, err } for _, path := range paths ...
[ "func", "(", "f", "*", "Function", ")", "Build", "(", ")", "(", "io", ".", "Reader", ",", "error", ")", "{", "f", ".", "Log", ".", "Debugf", "(", "\"", "\"", ")", "\n\n", "buf", ":=", "new", "(", "bytes", ".", "Buffer", ")", "\n", "zip", ":="...
// Build returns the zipped contents of the function.
[ "Build", "returns", "the", "zipped", "contents", "of", "the", "function", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L633-L689
25,034
apex/apex
function/function.go
GetVersionFromAlias
func (f *Function) GetVersionFromAlias(alias string) (string, error) { var version string = alias aliases, err := f.GetAliases() if err != nil { return version, err } for _, fnAlias := range aliases.Aliases { if strings.Compare(version, *fnAlias.Name) == 0 { version = *fnAlias.FunctionVersion break } ...
go
func (f *Function) GetVersionFromAlias(alias string) (string, error) { var version string = alias aliases, err := f.GetAliases() if err != nil { return version, err } for _, fnAlias := range aliases.Aliases { if strings.Compare(version, *fnAlias.Name) == 0 { version = *fnAlias.FunctionVersion break } ...
[ "func", "(", "f", "*", "Function", ")", "GetVersionFromAlias", "(", "alias", "string", ")", "(", "string", ",", "error", ")", "{", "var", "version", "string", "=", "alias", "\n", "aliases", ",", "err", ":=", "f", ".", "GetAliases", "(", ")", "\n", "i...
// Return function version from alias name, if alias not found, return the input
[ "Return", "function", "version", "from", "alias", "name", "if", "alias", "not", "found", "return", "the", "input" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L702-L716
25,035
apex/apex
function/function.go
cleanup
func (f *Function) cleanup() error { versionsToCleanup, err := f.versionsToCleanup() if err != nil { return err } return f.removeVersions(versionsToCleanup) }
go
func (f *Function) cleanup() error { versionsToCleanup, err := f.versionsToCleanup() if err != nil { return err } return f.removeVersions(versionsToCleanup) }
[ "func", "(", "f", "*", "Function", ")", "cleanup", "(", ")", "error", "{", "versionsToCleanup", ",", "err", ":=", "f", ".", "versionsToCleanup", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "return", "f", ".", ...
// cleanup removes any deployed functions beyond the configured `RetainedVersions` value
[ "cleanup", "removes", "any", "deployed", "functions", "beyond", "the", "configured", "RetainedVersions", "value" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L719-L726
25,036
apex/apex
function/function.go
versions
func (f *Function) versions() ([]*lambda.FunctionConfiguration, error) { var list []*lambda.FunctionConfiguration request := lambda.ListVersionsByFunctionInput{ FunctionName: &f.FunctionName, } for { page, err := f.Service.ListVersionsByFunction(&request) if err != nil { return nil, err } list = app...
go
func (f *Function) versions() ([]*lambda.FunctionConfiguration, error) { var list []*lambda.FunctionConfiguration request := lambda.ListVersionsByFunctionInput{ FunctionName: &f.FunctionName, } for { page, err := f.Service.ListVersionsByFunction(&request) if err != nil { return nil, err } list = app...
[ "func", "(", "f", "*", "Function", ")", "versions", "(", ")", "(", "[", "]", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "var", "list", "[", "]", "*", "lambda", ".", "FunctionConfiguration", "\n", "request", ":=", "lambda", "."...
// versions returns list of all versions deployed to AWS Lambda
[ "versions", "returns", "list", "of", "all", "versions", "deployed", "to", "AWS", "Lambda" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L729-L753
25,037
apex/apex
function/function.go
versionsToCleanup
func (f *Function) versionsToCleanup() ([]*lambda.FunctionConfiguration, error) { versions, err := f.versions() if err != nil { return nil, err } if *f.RetainedVersions == 0 { return versions, nil } if len(versions) > *f.RetainedVersions { return versions[:len(versions)-*f.RetainedVersions], nil } retu...
go
func (f *Function) versionsToCleanup() ([]*lambda.FunctionConfiguration, error) { versions, err := f.versions() if err != nil { return nil, err } if *f.RetainedVersions == 0 { return versions, nil } if len(versions) > *f.RetainedVersions { return versions[:len(versions)-*f.RetainedVersions], nil } retu...
[ "func", "(", "f", "*", "Function", ")", "versionsToCleanup", "(", ")", "(", "[", "]", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "versions", ",", "err", ":=", "f", ".", "versions", "(", ")", "\n", "if", "err", "!=", "nil", ...
// versionsToCleanup returns list of versions to remove after updating function
[ "versionsToCleanup", "returns", "list", "of", "versions", "to", "remove", "after", "updating", "function" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L756-L771
25,038
apex/apex
function/function.go
removeVersions
func (f *Function) removeVersions(versions []*lambda.FunctionConfiguration) error { for _, v := range versions { f.Log.Debugf("cleaning up version: %s", *v.Version) _, err := f.Service.DeleteFunction(&lambda.DeleteFunctionInput{ FunctionName: &f.FunctionName, Qualifier: v.Version, }) if err != nil {...
go
func (f *Function) removeVersions(versions []*lambda.FunctionConfiguration) error { for _, v := range versions { f.Log.Debugf("cleaning up version: %s", *v.Version) _, err := f.Service.DeleteFunction(&lambda.DeleteFunctionInput{ FunctionName: &f.FunctionName, Qualifier: v.Version, }) if err != nil {...
[ "func", "(", "f", "*", "Function", ")", "removeVersions", "(", "versions", "[", "]", "*", "lambda", ".", "FunctionConfiguration", ")", "error", "{", "for", "_", ",", "v", ":=", "range", "versions", "{", "f", ".", "Log", ".", "Debugf", "(", "\"", "\""...
// removeVersions removes specifed function's versions
[ "removeVersions", "removes", "specifed", "function", "s", "versions" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L774-L789
25,039
apex/apex
function/function.go
currentVersionAlias
func (f *Function) currentVersionAlias() (*lambda.AliasConfiguration, error) { return f.Service.GetAlias(&lambda.GetAliasInput{ FunctionName: &f.FunctionName, Name: &f.Alias, }) }
go
func (f *Function) currentVersionAlias() (*lambda.AliasConfiguration, error) { return f.Service.GetAlias(&lambda.GetAliasInput{ FunctionName: &f.FunctionName, Name: &f.Alias, }) }
[ "func", "(", "f", "*", "Function", ")", "currentVersionAlias", "(", ")", "(", "*", "lambda", ".", "AliasConfiguration", ",", "error", ")", "{", "return", "f", ".", "Service", ".", "GetAlias", "(", "&", "lambda", ".", "GetAliasInput", "{", "FunctionName", ...
// currentVersionAlias returns alias configuration for currently deployed function
[ "currentVersionAlias", "returns", "alias", "configuration", "for", "currently", "deployed", "function" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L792-L797
25,040
apex/apex
function/function.go
configChanged
func (f *Function) configChanged(config *lambda.GetFunctionOutput) bool { type diffConfig struct { Description string Memory int64 Timeout int64 Role string Runtime string Handler string VPC vpc.VPC Environment []string KMSKeyArn...
go
func (f *Function) configChanged(config *lambda.GetFunctionOutput) bool { type diffConfig struct { Description string Memory int64 Timeout int64 Role string Runtime string Handler string VPC vpc.VPC Environment []string KMSKeyArn...
[ "func", "(", "f", "*", "Function", ")", "configChanged", "(", "config", "*", "lambda", ".", "GetFunctionOutput", ")", "bool", "{", "type", "diffConfig", "struct", "{", "Description", "string", "\n", "Memory", "int64", "\n", "Timeout", "int64", "\n", "Role", ...
// configChanged checks if function configuration differs from configuration stored in AWS Lambda
[ "configChanged", "checks", "if", "function", "configuration", "differs", "from", "configuration", "stored", "in", "AWS", "Lambda" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L800-L876
25,041
apex/apex
function/function.go
hookOpen
func (f *Function) hookOpen() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Opener); ok { if err := p.Open(f); err != nil { return err } } } return nil }
go
func (f *Function) hookOpen() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Opener); ok { if err := p.Open(f); err != nil { return err } } } return nil }
[ "func", "(", "f", "*", "Function", ")", "hookOpen", "(", ")", "error", "{", "for", "_", ",", "name", ":=", "range", "f", ".", "Plugins", "{", "if", "p", ",", "ok", ":=", "plugins", "[", "name", "]", ".", "(", "Opener", ")", ";", "ok", "{", "i...
// hookOpen calls Openers.
[ "hookOpen", "calls", "Openers", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L879-L888
25,042
apex/apex
function/function.go
hookBuild
func (f *Function) hookBuild(zip *archive.Zip) error { for _, name := range f.Plugins { if p, ok := plugins[name].(Builder); ok { if err := p.Build(f, zip); err != nil { return err } } } return nil }
go
func (f *Function) hookBuild(zip *archive.Zip) error { for _, name := range f.Plugins { if p, ok := plugins[name].(Builder); ok { if err := p.Build(f, zip); err != nil { return err } } } return nil }
[ "func", "(", "f", "*", "Function", ")", "hookBuild", "(", "zip", "*", "archive", ".", "Zip", ")", "error", "{", "for", "_", ",", "name", ":=", "range", "f", ".", "Plugins", "{", "if", "p", ",", "ok", ":=", "plugins", "[", "name", "]", ".", "(",...
// hookBuild calls Builders.
[ "hookBuild", "calls", "Builders", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L891-L900
25,043
apex/apex
function/function.go
hookClean
func (f *Function) hookClean() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Cleaner); ok { if err := p.Clean(f); err != nil { return err } } } return nil }
go
func (f *Function) hookClean() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Cleaner); ok { if err := p.Clean(f); err != nil { return err } } } return nil }
[ "func", "(", "f", "*", "Function", ")", "hookClean", "(", ")", "error", "{", "for", "_", ",", "name", ":=", "range", "f", ".", "Plugins", "{", "if", "p", ",", "ok", ":=", "plugins", "[", "name", "]", ".", "(", "Cleaner", ")", ";", "ok", "{", ...
// hookClean calls Cleaners.
[ "hookClean", "calls", "Cleaners", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L903-L912
25,044
apex/apex
function/function.go
hookDeploy
func (f *Function) hookDeploy() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Deployer); ok { if err := p.Deploy(f); err != nil { return err } } } return nil }
go
func (f *Function) hookDeploy() error { for _, name := range f.Plugins { if p, ok := plugins[name].(Deployer); ok { if err := p.Deploy(f); err != nil { return err } } } return nil }
[ "func", "(", "f", "*", "Function", ")", "hookDeploy", "(", ")", "error", "{", "for", "_", ",", "name", ":=", "range", "f", ".", "Plugins", "{", "if", "p", ",", "ok", ":=", "plugins", "[", "name", "]", ".", "(", "Deployer", ")", ";", "ok", "{", ...
// hookDeploy calls Deployers.
[ "hookDeploy", "calls", "Deployers", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L915-L924
25,045
apex/apex
function/function.go
environment
func (f *Function) environment() *lambda.Environment { env := make(map[string]*string) if !f.Edge { for k, v := range f.Environment { env[k] = aws.String(v) } } return &lambda.Environment{Variables: env} }
go
func (f *Function) environment() *lambda.Environment { env := make(map[string]*string) if !f.Edge { for k, v := range f.Environment { env[k] = aws.String(v) } } return &lambda.Environment{Variables: env} }
[ "func", "(", "f", "*", "Function", ")", "environment", "(", ")", "*", "lambda", ".", "Environment", "{", "env", ":=", "make", "(", "map", "[", "string", "]", "*", "string", ")", "\n", "if", "!", "f", ".", "Edge", "{", "for", "k", ",", "v", ":="...
// environment for lambda calls.
[ "environment", "for", "lambda", "calls", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L927-L935
25,046
apex/apex
function/function.go
environ
func environ(env map[string]*string) []string { var keys []string var pairs []string for k := range env { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { pairs = append(pairs, fmt.Sprintf("%s=%s", k, *env[k])) } return pairs }
go
func environ(env map[string]*string) []string { var keys []string var pairs []string for k := range env { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { pairs = append(pairs, fmt.Sprintf("%s=%s", k, *env[k])) } return pairs }
[ "func", "environ", "(", "env", "map", "[", "string", "]", "*", "string", ")", "[", "]", "string", "{", "var", "keys", "[", "]", "string", "\n", "var", "pairs", "[", "]", "string", "\n\n", "for", "k", ":=", "range", "env", "{", "keys", "=", "appen...
// environment sorted and joined.
[ "environment", "sorted", "and", "joined", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L938-L953
25,047
apex/apex
function/function.go
AWSConfig
func (f *Function) AWSConfig() *aws.Config { region := f.Config.Region if f.Config.Edge { region = "us-east-1" } if len(region) > 0 { return aws.NewConfig().WithRegion(region) } return nil }
go
func (f *Function) AWSConfig() *aws.Config { region := f.Config.Region if f.Config.Edge { region = "us-east-1" } if len(region) > 0 { return aws.NewConfig().WithRegion(region) } return nil }
[ "func", "(", "f", "*", "Function", ")", "AWSConfig", "(", ")", "*", "aws", ".", "Config", "{", "region", ":=", "f", ".", "Config", ".", "Region", "\n", "if", "f", ".", "Config", ".", "Edge", "{", "region", "=", "\"", "\"", "\n", "}", "\n\n", "i...
// AWSConfig returns AWS configuration if function has specified region.
[ "AWSConfig", "returns", "AWS", "configuration", "if", "function", "has", "specified", "region", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/function/function.go#L956-L966
25,048
apex/apex
docs/docs.go
Reader
func Reader() io.Reader { var in bytes.Buffer for _, page := range pages { in.WriteString(fmt.Sprintf("\n# %s\n", page.Name)) in.Write(MustAsset(page.File)) } md := markdown.New(markdown.XHTMLOutput(true), markdown.Nofollow(true)) v := &renderer{} s := v.visit(md.Parse(in.Bytes())) return strings.NewReader...
go
func Reader() io.Reader { var in bytes.Buffer for _, page := range pages { in.WriteString(fmt.Sprintf("\n# %s\n", page.Name)) in.Write(MustAsset(page.File)) } md := markdown.New(markdown.XHTMLOutput(true), markdown.Nofollow(true)) v := &renderer{} s := v.visit(md.Parse(in.Bytes())) return strings.NewReader...
[ "func", "Reader", "(", ")", "io", ".", "Reader", "{", "var", "in", "bytes", ".", "Buffer", "\n\n", "for", "_", ",", "page", ":=", "range", "pages", "{", "in", ".", "WriteString", "(", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\\n", "\"", ",", "pa...
// Reader returns all documentation as a single page.
[ "Reader", "returns", "all", "documentation", "as", "a", "single", "page", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/docs/docs.go#L52-L64
25,049
apex/apex
docs/docs.go
indent
func indent(s string, n int) string { i := strings.Repeat(" ", n) return i + strings.Replace(s, "\n", "\n"+i, -1) }
go
func indent(s string, n int) string { i := strings.Repeat(" ", n) return i + strings.Replace(s, "\n", "\n"+i, -1) }
[ "func", "indent", "(", "s", "string", ",", "n", "int", ")", "string", "{", "i", ":=", "strings", ".", "Repeat", "(", "\"", "\"", ",", "n", ")", "\n", "return", "i", "+", "strings", ".", "Replace", "(", "s", ",", "\"", "\\n", "\"", ",", "\"", ...
// indent string N times.
[ "indent", "string", "N", "times", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/docs/docs.go#L67-L70
25,050
apex/apex
docs/docs.go
visit
func (r *renderer) visit(tokens []markdown.Token) (s string) { for _, t := range tokens { s += r.visitToken(t) } return }
go
func (r *renderer) visit(tokens []markdown.Token) (s string) { for _, t := range tokens { s += r.visitToken(t) } return }
[ "func", "(", "r", "*", "renderer", ")", "visit", "(", "tokens", "[", "]", "markdown", ".", "Token", ")", "(", "s", "string", ")", "{", "for", "_", ",", "t", ":=", "range", "tokens", "{", "s", "+=", "r", ".", "visitToken", "(", "t", ")", "\n", ...
// visit `tokens`.
[ "visit", "tokens", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/docs/docs.go#L80-L85
25,051
apex/apex
docs/docs.go
visitToken
func (r *renderer) visitToken(t markdown.Token) string { switch t.(type) { case *markdown.ParagraphOpen: r.inParagraph = true return "" case *markdown.ParagraphClose: r.inParagraph = false return "\n" case *markdown.CodeBlock: return fmt.Sprintf("\n%s\n", indent(t.(*markdown.CodeBlock).Content, 2)) case ...
go
func (r *renderer) visitToken(t markdown.Token) string { switch t.(type) { case *markdown.ParagraphOpen: r.inParagraph = true return "" case *markdown.ParagraphClose: r.inParagraph = false return "\n" case *markdown.CodeBlock: return fmt.Sprintf("\n%s\n", indent(t.(*markdown.CodeBlock).Content, 2)) case ...
[ "func", "(", "r", "*", "renderer", ")", "visitToken", "(", "t", "markdown", ".", "Token", ")", "string", "{", "switch", "t", ".", "(", "type", ")", "{", "case", "*", "markdown", ".", "ParagraphOpen", ":", "r", ".", "inParagraph", "=", "true", "\n", ...
// vistToken `t`.
[ "vistToken", "t", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/docs/docs.go#L88-L143
25,052
apex/apex
plugins/python/python.go
Open
func (p *Plugin) Open(fn *function.Function) error { if !strings.HasPrefix(fn.Runtime, "python") { return nil } // Support "python" for backwards compat. if fn.Runtime == "python" { fn.Runtime = "python2.7" } if fn.Handler == "" { fn.Handler = "main.handle" } return nil }
go
func (p *Plugin) Open(fn *function.Function) error { if !strings.HasPrefix(fn.Runtime, "python") { return nil } // Support "python" for backwards compat. if fn.Runtime == "python" { fn.Runtime = "python2.7" } if fn.Handler == "" { fn.Handler = "main.handle" } return nil }
[ "func", "(", "p", "*", "Plugin", ")", "Open", "(", "fn", "*", "function", ".", "Function", ")", "error", "{", "if", "!", "strings", ".", "HasPrefix", "(", "fn", ".", "Runtime", ",", "\"", "\"", ")", "{", "return", "nil", "\n", "}", "\n\n", "// Su...
// Open adds python defaults.
[ "Open", "adds", "python", "defaults", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/plugins/python/python.go#L21-L36
25,053
apex/apex
cmd/apex/invoke/invoke.go
preRun
func preRun(c *cobra.Command, args []string) error { if len(args) < 1 { return errors.New("Missing name argument") } name = args[0] return nil }
go
func preRun(c *cobra.Command, args []string) error { if len(args) < 1 { return errors.New("Missing name argument") } name = args[0] return nil }
[ "func", "preRun", "(", "c", "*", "cobra", ".", "Command", ",", "args", "[", "]", "string", ")", "error", "{", "if", "len", "(", "args", ")", "<", "1", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n\n", "name", "=", ...
// PreRun errors if the name argument is missing.
[ "PreRun", "errors", "if", "the", "name", "argument", "is", "missing", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/cmd/apex/invoke/invoke.go#L54-L61
25,054
apex/apex
cmd/apex/invoke/invoke.go
input
func input() io.Reader { if isatty.IsTerminal(os.Stdin.Fd()) { return strings.NewReader("{}") } return os.Stdin }
go
func input() io.Reader { if isatty.IsTerminal(os.Stdin.Fd()) { return strings.NewReader("{}") } return os.Stdin }
[ "func", "input", "(", ")", "io", ".", "Reader", "{", "if", "isatty", ".", "IsTerminal", "(", "os", ".", "Stdin", ".", "Fd", "(", ")", ")", "{", "return", "strings", ".", "NewReader", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "os", ".", ...
// input from stdin or empty object by default.
[ "input", "from", "stdin", "or", "empty", "object", "by", "default", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/cmd/apex/invoke/invoke.go#L111-L117
25,055
apex/apex
infra/infra.go
Run
func (p *Proxy) Run(args ...string) error { if p.shouldInjectVars(args) { args = append(args, p.functionVars()...) } log.WithFields(log.Fields{ "args": args, }).Debug("terraform") cmd := exec.Command("terraform", args...) cmd.Env = append(os.Environ(), fmt.Sprintf("AWS_REGION=%s", p.Region)) cmd.Stdin = os...
go
func (p *Proxy) Run(args ...string) error { if p.shouldInjectVars(args) { args = append(args, p.functionVars()...) } log.WithFields(log.Fields{ "args": args, }).Debug("terraform") cmd := exec.Command("terraform", args...) cmd.Env = append(os.Environ(), fmt.Sprintf("AWS_REGION=%s", p.Region)) cmd.Stdin = os...
[ "func", "(", "p", "*", "Proxy", ")", "Run", "(", "args", "...", "string", ")", "error", "{", "if", "p", ".", "shouldInjectVars", "(", "args", ")", "{", "args", "=", "append", "(", "args", ",", "p", ".", "functionVars", "(", ")", "...", ")", "\n",...
// Run terraform command in infrastructure directory.
[ "Run", "terraform", "command", "in", "infrastructure", "directory", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/infra/infra.go#L29-L46
25,056
apex/apex
infra/infra.go
shouldInjectVars
func (p *Proxy) shouldInjectVars(args []string) bool { if len(args) == 0 { return false } return args[0] == "plan" || args[0] == "apply" || args[0] == "destroy" || args[0] == "refresh" }
go
func (p *Proxy) shouldInjectVars(args []string) bool { if len(args) == 0 { return false } return args[0] == "plan" || args[0] == "apply" || args[0] == "destroy" || args[0] == "refresh" }
[ "func", "(", "p", "*", "Proxy", ")", "shouldInjectVars", "(", "args", "[", "]", "string", ")", "bool", "{", "if", "len", "(", "args", ")", "==", "0", "{", "return", "false", "\n", "}", "\n\n", "return", "args", "[", "0", "]", "==", "\"", "\"", ...
// shouldInjectVars checks if the command accepts -var flags.
[ "shouldInjectVars", "checks", "if", "the", "command", "accepts", "-", "var", "flags", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/infra/infra.go#L49-L55
25,057
apex/apex
infra/infra.go
Output
func Output(environment, name string) (string, error) { cmd := exec.Command("sh", "-c", fmt.Sprintf("terraform output %s", name)) cmd.Dir = filepath.Join(Dir, environment) out, err := cmd.CombinedOutput() if err != nil { return "", err } return strings.Trim(string(out), "\n"), nil }
go
func Output(environment, name string) (string, error) { cmd := exec.Command("sh", "-c", fmt.Sprintf("terraform output %s", name)) cmd.Dir = filepath.Join(Dir, environment) out, err := cmd.CombinedOutput() if err != nil { return "", err } return strings.Trim(string(out), "\n"), nil }
[ "func", "Output", "(", "environment", ",", "name", "string", ")", "(", "string", ",", "error", ")", "{", "cmd", ":=", "exec", ".", "Command", "(", "\"", "\"", ",", "\"", "\"", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "name", ")", ")", ...
// Output fetches output variable `name` from terraform.
[ "Output", "fetches", "output", "variable", "name", "from", "terraform", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/infra/infra.go#L58-L68
25,058
apex/apex
archive/zip.go
AddBytes
func (z *Zip) AddBytes(path string, contents []byte) error { z.lock.Lock() defer z.lock.Unlock() header := &zip.FileHeader{ Name: path, Method: zip.Deflate, } header.SetModTime(time.Unix(0, 0)) zippedFile, err := z.writer.CreateHeader(header) if err != nil { return err } _, err = zippedFile.Write(c...
go
func (z *Zip) AddBytes(path string, contents []byte) error { z.lock.Lock() defer z.lock.Unlock() header := &zip.FileHeader{ Name: path, Method: zip.Deflate, } header.SetModTime(time.Unix(0, 0)) zippedFile, err := z.writer.CreateHeader(header) if err != nil { return err } _, err = zippedFile.Write(c...
[ "func", "(", "z", "*", "Zip", ")", "AddBytes", "(", "path", "string", ",", "contents", "[", "]", "byte", ")", "error", "{", "z", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "z", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "header", ":=...
// AddBytes add bytes to archive.
[ "AddBytes", "add", "bytes", "to", "archive", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/archive/zip.go#L33-L51
25,059
apex/apex
archive/zip.go
AddFile
func (z *Zip) AddFile(path string, file *os.File) error { path = strings.Replace(path, "\\", "/", -1) z.lock.Lock() defer z.lock.Unlock() info, err := file.Stat() if err != nil { return err } if !info.Mode().IsRegular() { return errors.New("Only regular files supported: " + path) } header, err := zip.F...
go
func (z *Zip) AddFile(path string, file *os.File) error { path = strings.Replace(path, "\\", "/", -1) z.lock.Lock() defer z.lock.Unlock() info, err := file.Stat() if err != nil { return err } if !info.Mode().IsRegular() { return errors.New("Only regular files supported: " + path) } header, err := zip.F...
[ "func", "(", "z", "*", "Zip", ")", "AddFile", "(", "path", "string", ",", "file", "*", "os", ".", "File", ")", "error", "{", "path", "=", "strings", ".", "Replace", "(", "path", ",", "\"", "\\\\", "\"", ",", "\"", "\"", ",", "-", "1", ")", "\...
// AddFile adds a file to archive. // AddFile resets mtime.
[ "AddFile", "adds", "a", "file", "to", "archive", ".", "AddFile", "resets", "mtime", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/archive/zip.go#L55-L85
25,060
apex/apex
archive/zip.go
AddDir
func (z *Zip) AddDir(root, target string) error { return filepath.Walk(root, func(path string, info os.FileInfo, err error) error { if err != nil { return err } if !info.Mode().IsRegular() { return nil } file, err := os.Open(path) if err != nil { return err } defer file.Close() rel, err :...
go
func (z *Zip) AddDir(root, target string) error { return filepath.Walk(root, func(path string, info os.FileInfo, err error) error { if err != nil { return err } if !info.Mode().IsRegular() { return nil } file, err := os.Open(path) if err != nil { return err } defer file.Close() rel, err :...
[ "func", "(", "z", "*", "Zip", ")", "AddDir", "(", "root", ",", "target", "string", ")", "error", "{", "return", "filepath", ".", "Walk", "(", "root", ",", "func", "(", "path", "string", ",", "info", "os", ".", "FileInfo", ",", "err", "error", ")", ...
// AddDir to target path in archive. This function doesn't follow symlinks.
[ "AddDir", "to", "target", "path", "in", "archive", ".", "This", "function", "doesn", "t", "follow", "symlinks", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/archive/zip.go#L88-L112
25,061
apex/apex
dryrun/dryrun.go
New
func New(session *session.Session) *Lambda { fmt.Printf("\n") return &Lambda{ Lambda: lambda.New(session), } }
go
func New(session *session.Session) *Lambda { fmt.Printf("\n") return &Lambda{ Lambda: lambda.New(session), } }
[ "func", "New", "(", "session", "*", "session", ".", "Session", ")", "*", "Lambda", "{", "fmt", ".", "Printf", "(", "\"", "\\n", "\"", ")", "\n", "return", "&", "Lambda", "{", "Lambda", ":", "lambda", ".", "New", "(", "session", ")", ",", "}", "\n...
// New dry-run Lambda service for the given session.
[ "New", "dry", "-", "run", "Lambda", "service", "for", "the", "given", "session", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L29-L34
25,062
apex/apex
dryrun/dryrun.go
CreateFunction
func (l *Lambda) CreateFunction(in *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { l.create("function", *in.FunctionName, map[string]interface{}{ "runtime": *in.Runtime, "memory": *in.MemorySize, "timeout": *in.Timeout, "handler": *in.Handler, }) out := &lambda.FunctionConfiguration{ ...
go
func (l *Lambda) CreateFunction(in *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { l.create("function", *in.FunctionName, map[string]interface{}{ "runtime": *in.Runtime, "memory": *in.MemorySize, "timeout": *in.Timeout, "handler": *in.Handler, }) out := &lambda.FunctionConfiguration{ ...
[ "func", "(", "l", "*", "Lambda", ")", "CreateFunction", "(", "in", "*", "lambda", ".", "CreateFunctionInput", ")", "(", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "l", ".", "create", "(", "\"", "\"", ",", "*", "in", ".", "Fu...
// CreateFunction stub.
[ "CreateFunction", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L37-L50
25,063
apex/apex
dryrun/dryrun.go
UpdateFunctionCode
func (l *Lambda) UpdateFunctionCode(in *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error) { res, err := l.GetFunction(&lambda.GetFunctionInput{ FunctionName: in.FunctionName, }) if err != nil { return nil, err } size := uint64(len(in.ZipFile)) checksum := utils.Sha256(in.ZipFile) remot...
go
func (l *Lambda) UpdateFunctionCode(in *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error) { res, err := l.GetFunction(&lambda.GetFunctionInput{ FunctionName: in.FunctionName, }) if err != nil { return nil, err } size := uint64(len(in.ZipFile)) checksum := utils.Sha256(in.ZipFile) remot...
[ "func", "(", "l", "*", "Lambda", ")", "UpdateFunctionCode", "(", "in", "*", "lambda", ".", "UpdateFunctionCodeInput", ")", "(", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "res", ",", "err", ":=", "l", ".", "GetFunction", "(", "&...
// UpdateFunctionCode stub.
[ "UpdateFunctionCode", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L53-L78
25,064
apex/apex
dryrun/dryrun.go
UpdateFunctionConfiguration
func (l *Lambda) UpdateFunctionConfiguration(in *lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { res, err := l.GetFunctionConfiguration(&lambda.GetFunctionConfigurationInput{ FunctionName: in.FunctionName, }) if e, ok := err.(awserr.Error); ok { if e.Code() == "ResourceNotFound...
go
func (l *Lambda) UpdateFunctionConfiguration(in *lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { res, err := l.GetFunctionConfiguration(&lambda.GetFunctionConfigurationInput{ FunctionName: in.FunctionName, }) if e, ok := err.(awserr.Error); ok { if e.Code() == "ResourceNotFound...
[ "func", "(", "l", "*", "Lambda", ")", "UpdateFunctionConfiguration", "(", "in", "*", "lambda", ".", "UpdateFunctionConfigurationInput", ")", "(", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "res", ",", "err", ":=", "l", ".", "GetFunc...
// UpdateFunctionConfiguration stub.
[ "UpdateFunctionConfiguration", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L81-L123
25,065
apex/apex
dryrun/dryrun.go
DeleteFunction
func (l *Lambda) DeleteFunction(in *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { if in.Qualifier == nil { l.remove("function", *in.FunctionName, nil) } else { l.remove("function version", fmt.Sprintf("%s (version: %s)", *in.FunctionName, *in.Qualifier), nil) } return nil, nil }
go
func (l *Lambda) DeleteFunction(in *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { if in.Qualifier == nil { l.remove("function", *in.FunctionName, nil) } else { l.remove("function version", fmt.Sprintf("%s (version: %s)", *in.FunctionName, *in.Qualifier), nil) } return nil, nil }
[ "func", "(", "l", "*", "Lambda", ")", "DeleteFunction", "(", "in", "*", "lambda", ".", "DeleteFunctionInput", ")", "(", "*", "lambda", ".", "DeleteFunctionOutput", ",", "error", ")", "{", "if", "in", ".", "Qualifier", "==", "nil", "{", "l", ".", "remov...
// DeleteFunction stub.
[ "DeleteFunction", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L126-L134
25,066
apex/apex
dryrun/dryrun.go
CreateAlias
func (l *Lambda) CreateAlias(in *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { l.create("alias", *in.FunctionName, map[string]interface{}{ "alias": *in.Name, "version": *in.FunctionVersion, }) return nil, nil }
go
func (l *Lambda) CreateAlias(in *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { l.create("alias", *in.FunctionName, map[string]interface{}{ "alias": *in.Name, "version": *in.FunctionVersion, }) return nil, nil }
[ "func", "(", "l", "*", "Lambda", ")", "CreateAlias", "(", "in", "*", "lambda", ".", "CreateAliasInput", ")", "(", "*", "lambda", ".", "AliasConfiguration", ",", "error", ")", "{", "l", ".", "create", "(", "\"", "\"", ",", "*", "in", ".", "FunctionNam...
// CreateAlias stub.
[ "CreateAlias", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L137-L143
25,067
apex/apex
dryrun/dryrun.go
UpdateAlias
func (l *Lambda) UpdateAlias(in *lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) { l.update("alias", *in.FunctionName, map[string]interface{}{ "alias": *in.Name, "version": *in.FunctionVersion, }) return nil, nil }
go
func (l *Lambda) UpdateAlias(in *lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) { l.update("alias", *in.FunctionName, map[string]interface{}{ "alias": *in.Name, "version": *in.FunctionVersion, }) return nil, nil }
[ "func", "(", "l", "*", "Lambda", ")", "UpdateAlias", "(", "in", "*", "lambda", ".", "UpdateAliasInput", ")", "(", "*", "lambda", ".", "AliasConfiguration", ",", "error", ")", "{", "l", ".", "update", "(", "\"", "\"", ",", "*", "in", ".", "FunctionNam...
// UpdateAlias stub.
[ "UpdateAlias", "stub", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L146-L152
25,068
apex/apex
dryrun/dryrun.go
create
func (l *Lambda) create(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '+', green) }
go
func (l *Lambda) create(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '+', green) }
[ "func", "(", "l", "*", "Lambda", ")", "create", "(", "kind", ",", "name", "string", ",", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "{", "l", ".", "log", "(", "kind", ",", "name", ",", "m", ",", "'+'", ",", "green", ")", "\n"...
// create message.
[ "create", "message", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L163-L165
25,069
apex/apex
dryrun/dryrun.go
update
func (l *Lambda) update(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '~', yellow) }
go
func (l *Lambda) update(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '~', yellow) }
[ "func", "(", "l", "*", "Lambda", ")", "update", "(", "kind", ",", "name", "string", ",", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "{", "l", ".", "log", "(", "kind", ",", "name", ",", "m", ",", "'~'", ",", "yellow", ")", "\n...
// update message.
[ "update", "message", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L168-L170
25,070
apex/apex
dryrun/dryrun.go
remove
func (l *Lambda) remove(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '-', red) }
go
func (l *Lambda) remove(kind, name string, m map[string]interface{}) { l.log(kind, name, m, '-', red) }
[ "func", "(", "l", "*", "Lambda", ")", "remove", "(", "kind", ",", "name", "string", ",", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "{", "l", ".", "log", "(", "kind", ",", "name", ",", "m", ",", "'-'", ",", "red", ")", "\n", ...
// remove message.
[ "remove", "message", "." ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/dryrun/dryrun.go#L173-L175
25,071
apex/apex
mock/service/provider.go
NewMockProvideriface
func NewMockProvideriface(ctrl *gomock.Controller) *MockProvideriface { mock := &MockProvideriface{ctrl: ctrl} mock.recorder = &MockProviderifaceMockRecorder{mock} return mock }
go
func NewMockProvideriface(ctrl *gomock.Controller) *MockProvideriface { mock := &MockProvideriface{ctrl: ctrl} mock.recorder = &MockProviderifaceMockRecorder{mock} return mock }
[ "func", "NewMockProvideriface", "(", "ctrl", "*", "gomock", ".", "Controller", ")", "*", "MockProvideriface", "{", "mock", ":=", "&", "MockProvideriface", "{", "ctrl", ":", "ctrl", "}", "\n", "mock", ".", "recorder", "=", "&", "MockProviderifaceMockRecorder", ...
// NewMockProvideriface creates a new mock instance
[ "NewMockProvideriface", "creates", "a", "new", "mock", "instance" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/service/provider.go#L27-L31
25,072
apex/apex
mock/service/provider.go
NewService
func (m *MockProvideriface) NewService(arg0 *aws.Config) lambdaiface.LambdaAPI { if m.ctrl == nil { return nil } ret := m.ctrl.Call(m, "NewService", arg0) ret0, _ := ret[0].(lambdaiface.LambdaAPI) return ret0 }
go
func (m *MockProvideriface) NewService(arg0 *aws.Config) lambdaiface.LambdaAPI { if m.ctrl == nil { return nil } ret := m.ctrl.Call(m, "NewService", arg0) ret0, _ := ret[0].(lambdaiface.LambdaAPI) return ret0 }
[ "func", "(", "m", "*", "MockProvideriface", ")", "NewService", "(", "arg0", "*", "aws", ".", "Config", ")", "lambdaiface", ".", "LambdaAPI", "{", "if", "m", ".", "ctrl", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "ret", ":=", "m", ".", "...
// NewService mocks base method
[ "NewService", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/service/provider.go#L39-L47
25,073
apex/apex
mock/service/provider.go
NewService
func (mr *MockProviderifaceMockRecorder) NewService(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewService", reflect.TypeOf((*MockProvideriface)(nil).NewService), arg0) }
go
func (mr *MockProviderifaceMockRecorder) NewService(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewService", reflect.TypeOf((*MockProvideriface)(nil).NewService), arg0) }
[ "func", "(", "mr", "*", "MockProviderifaceMockRecorder", ")", "NewService", "(", "arg0", "interface", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", ...
// NewService indicates an expected call of NewService
[ "NewService", "indicates", "an", "expected", "call", "of", "NewService" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/service/provider.go#L50-L52
25,074
apex/apex
mock/lambdaiface.go
NewMockLambdaAPI
func NewMockLambdaAPI(ctrl *gomock.Controller) *MockLambdaAPI { mock := &MockLambdaAPI{ctrl: ctrl} mock.recorder = &MockLambdaAPIMockRecorder{mock} return mock }
go
func NewMockLambdaAPI(ctrl *gomock.Controller) *MockLambdaAPI { mock := &MockLambdaAPI{ctrl: ctrl} mock.recorder = &MockLambdaAPIMockRecorder{mock} return mock }
[ "func", "NewMockLambdaAPI", "(", "ctrl", "*", "gomock", ".", "Controller", ")", "*", "MockLambdaAPI", "{", "mock", ":=", "&", "MockLambdaAPI", "{", "ctrl", ":", "ctrl", "}", "\n", "mock", ".", "recorder", "=", "&", "MockLambdaAPIMockRecorder", "{", "mock", ...
// NewMockLambdaAPI creates a new mock instance
[ "NewMockLambdaAPI", "creates", "a", "new", "mock", "instance" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L27-L31
25,075
apex/apex
mock/lambdaiface.go
AddPermission
func (m *MockLambdaAPI) AddPermission(arg0 *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) { ret := m.ctrl.Call(m, "AddPermission", arg0) ret0, _ := ret[0].(*lambda.AddPermissionOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) AddPermission(arg0 *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) { ret := m.ctrl.Call(m, "AddPermission", arg0) ret0, _ := ret[0].(*lambda.AddPermissionOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "AddPermission", "(", "arg0", "*", "lambda", ".", "AddPermissionInput", ")", "(", "*", "lambda", ".", "AddPermissionOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",",...
// AddPermission mocks base method
[ "AddPermission", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L39-L44
25,076
apex/apex
mock/lambdaiface.go
AddPermissionRequest
func (m *MockLambdaAPI) AddPermissionRequest(arg0 *lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) { ret := m.ctrl.Call(m, "AddPermissionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.AddPermissionOutput) return ret0, ret1 }
go
func (m *MockLambdaAPI) AddPermissionRequest(arg0 *lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) { ret := m.ctrl.Call(m, "AddPermissionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.AddPermissionOutput) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "AddPermissionRequest", "(", "arg0", "*", "lambda", ".", "AddPermissionInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "AddPermissionOutput", ")", "{", "ret", ":=", "m", ".", "ctrl", ...
// AddPermissionRequest mocks base method
[ "AddPermissionRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L52-L57
25,077
apex/apex
mock/lambdaiface.go
AddPermissionWithContext
func (m *MockLambdaAPI) AddPermissionWithContext(arg0 aws.Context, arg1 *lambda.AddPermissionInput, arg2 ...request.Option) (*lambda.AddPermissionOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddPermissionWithContext", varargs....
go
func (m *MockLambdaAPI) AddPermissionWithContext(arg0 aws.Context, arg1 *lambda.AddPermissionInput, arg2 ...request.Option) (*lambda.AddPermissionOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "AddPermissionWithContext", varargs....
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "AddPermissionWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "AddPermissionInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", ".", "AddPermissionOutp...
// AddPermissionWithContext mocks base method
[ "AddPermissionWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L65-L74
25,078
apex/apex
mock/lambdaiface.go
CreateAlias
func (m *MockLambdaAPI) CreateAlias(arg0 *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { ret := m.ctrl.Call(m, "CreateAlias", arg0) ret0, _ := ret[0].(*lambda.AliasConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) CreateAlias(arg0 *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { ret := m.ctrl.Call(m, "CreateAlias", arg0) ret0, _ := ret[0].(*lambda.AliasConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateAlias", "(", "arg0", "*", "lambda", ".", "CreateAliasInput", ")", "(", "*", "lambda", ".", "AliasConfiguration", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\...
// CreateAlias mocks base method
[ "CreateAlias", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L83-L88
25,079
apex/apex
mock/lambdaiface.go
CreateAliasRequest
func (m *MockLambdaAPI) CreateAliasRequest(arg0 *lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) { ret := m.ctrl.Call(m, "CreateAliasRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.AliasConfiguration) return ret0, ret1 }
go
func (m *MockLambdaAPI) CreateAliasRequest(arg0 *lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) { ret := m.ctrl.Call(m, "CreateAliasRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.AliasConfiguration) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateAliasRequest", "(", "arg0", "*", "lambda", ".", "CreateAliasInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "AliasConfiguration", ")", "{", "ret", ":=", "m", ".", "ctrl", ".",...
// CreateAliasRequest mocks base method
[ "CreateAliasRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L96-L101
25,080
apex/apex
mock/lambdaiface.go
CreateAliasWithContext
func (m *MockLambdaAPI) CreateAliasWithContext(arg0 aws.Context, arg1 *lambda.CreateAliasInput, arg2 ...request.Option) (*lambda.AliasConfiguration, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateAliasWithContext", varargs...) re...
go
func (m *MockLambdaAPI) CreateAliasWithContext(arg0 aws.Context, arg1 *lambda.CreateAliasInput, arg2 ...request.Option) (*lambda.AliasConfiguration, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "CreateAliasWithContext", varargs...) re...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateAliasWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "CreateAliasInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", ".", "AliasConfiguration", ...
// CreateAliasWithContext mocks base method
[ "CreateAliasWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L109-L118
25,081
apex/apex
mock/lambdaiface.go
CreateEventSourceMapping
func (m *MockLambdaAPI) CreateEventSourceMapping(arg0 *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := m.ctrl.Call(m, "CreateEventSourceMapping", arg0) ret0, _ := ret[0].(*lambda.EventSourceMappingConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) CreateEventSourceMapping(arg0 *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := m.ctrl.Call(m, "CreateEventSourceMapping", arg0) ret0, _ := ret[0].(*lambda.EventSourceMappingConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateEventSourceMapping", "(", "arg0", "*", "lambda", ".", "CreateEventSourceMappingInput", ")", "(", "*", "lambda", ".", "EventSourceMappingConfiguration", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", "...
// CreateEventSourceMapping mocks base method
[ "CreateEventSourceMapping", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L127-L132
25,082
apex/apex
mock/lambdaiface.go
CreateEventSourceMappingRequest
func (m *MockLambdaAPI) CreateEventSourceMappingRequest(arg0 *lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := m.ctrl.Call(m, "CreateEventSourceMappingRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.EventSourceMappingConfigurat...
go
func (m *MockLambdaAPI) CreateEventSourceMappingRequest(arg0 *lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := m.ctrl.Call(m, "CreateEventSourceMappingRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.EventSourceMappingConfigurat...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateEventSourceMappingRequest", "(", "arg0", "*", "lambda", ".", "CreateEventSourceMappingInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "EventSourceMappingConfiguration", ")", "{", "ret",...
// CreateEventSourceMappingRequest mocks base method
[ "CreateEventSourceMappingRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L140-L145
25,083
apex/apex
mock/lambdaiface.go
CreateFunction
func (m *MockLambdaAPI) CreateFunction(arg0 *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { ret := m.ctrl.Call(m, "CreateFunction", arg0) ret0, _ := ret[0].(*lambda.FunctionConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) CreateFunction(arg0 *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { ret := m.ctrl.Call(m, "CreateFunction", arg0) ret0, _ := ret[0].(*lambda.FunctionConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateFunction", "(", "arg0", "*", "lambda", ".", "CreateFunctionInput", ")", "(", "*", "lambda", ".", "FunctionConfiguration", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ...
// CreateFunction mocks base method
[ "CreateFunction", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L171-L176
25,084
apex/apex
mock/lambdaiface.go
CreateFunctionRequest
func (m *MockLambdaAPI) CreateFunctionRequest(arg0 *lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) { ret := m.ctrl.Call(m, "CreateFunctionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.FunctionConfiguration) return ret0, ret1 }
go
func (m *MockLambdaAPI) CreateFunctionRequest(arg0 *lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) { ret := m.ctrl.Call(m, "CreateFunctionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.FunctionConfiguration) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "CreateFunctionRequest", "(", "arg0", "*", "lambda", ".", "CreateFunctionInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "FunctionConfiguration", ")", "{", "ret", ":=", "m", ".", "ctrl...
// CreateFunctionRequest mocks base method
[ "CreateFunctionRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L184-L189
25,085
apex/apex
mock/lambdaiface.go
DeleteAlias
func (m *MockLambdaAPI) DeleteAlias(arg0 *lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) { ret := m.ctrl.Call(m, "DeleteAlias", arg0) ret0, _ := ret[0].(*lambda.DeleteAliasOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteAlias(arg0 *lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) { ret := m.ctrl.Call(m, "DeleteAlias", arg0) ret0, _ := ret[0].(*lambda.DeleteAliasOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteAlias", "(", "arg0", "*", "lambda", ".", "DeleteAliasInput", ")", "(", "*", "lambda", ".", "DeleteAliasOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"...
// DeleteAlias mocks base method
[ "DeleteAlias", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L215-L220
25,086
apex/apex
mock/lambdaiface.go
DeleteAliasRequest
func (m *MockLambdaAPI) DeleteAliasRequest(arg0 *lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) { ret := m.ctrl.Call(m, "DeleteAliasRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteAliasOutput) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteAliasRequest(arg0 *lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) { ret := m.ctrl.Call(m, "DeleteAliasRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteAliasOutput) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteAliasRequest", "(", "arg0", "*", "lambda", ".", "DeleteAliasInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "DeleteAliasOutput", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", ...
// DeleteAliasRequest mocks base method
[ "DeleteAliasRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L228-L233
25,087
apex/apex
mock/lambdaiface.go
DeleteAliasWithContext
func (m *MockLambdaAPI) DeleteAliasWithContext(arg0 aws.Context, arg1 *lambda.DeleteAliasInput, arg2 ...request.Option) (*lambda.DeleteAliasOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteAliasWithContext", varargs...) ret...
go
func (m *MockLambdaAPI) DeleteAliasWithContext(arg0 aws.Context, arg1 *lambda.DeleteAliasInput, arg2 ...request.Option) (*lambda.DeleteAliasOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteAliasWithContext", varargs...) ret...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteAliasWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "DeleteAliasInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", ".", "DeleteAliasOutput", ...
// DeleteAliasWithContext mocks base method
[ "DeleteAliasWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L241-L250
25,088
apex/apex
mock/lambdaiface.go
DeleteEventSourceMapping
func (m *MockLambdaAPI) DeleteEventSourceMapping(arg0 *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := m.ctrl.Call(m, "DeleteEventSourceMapping", arg0) ret0, _ := ret[0].(*lambda.EventSourceMappingConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteEventSourceMapping(arg0 *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := m.ctrl.Call(m, "DeleteEventSourceMapping", arg0) ret0, _ := ret[0].(*lambda.EventSourceMappingConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteEventSourceMapping", "(", "arg0", "*", "lambda", ".", "DeleteEventSourceMappingInput", ")", "(", "*", "lambda", ".", "EventSourceMappingConfiguration", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", "...
// DeleteEventSourceMapping mocks base method
[ "DeleteEventSourceMapping", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L259-L264
25,089
apex/apex
mock/lambdaiface.go
DeleteEventSourceMappingRequest
func (m *MockLambdaAPI) DeleteEventSourceMappingRequest(arg0 *lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := m.ctrl.Call(m, "DeleteEventSourceMappingRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.EventSourceMappingConfigurat...
go
func (m *MockLambdaAPI) DeleteEventSourceMappingRequest(arg0 *lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := m.ctrl.Call(m, "DeleteEventSourceMappingRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.EventSourceMappingConfigurat...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteEventSourceMappingRequest", "(", "arg0", "*", "lambda", ".", "DeleteEventSourceMappingInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "EventSourceMappingConfiguration", ")", "{", "ret",...
// DeleteEventSourceMappingRequest mocks base method
[ "DeleteEventSourceMappingRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L272-L277
25,090
apex/apex
mock/lambdaiface.go
DeleteFunction
func (m *MockLambdaAPI) DeleteFunction(arg0 *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { ret := m.ctrl.Call(m, "DeleteFunction", arg0) ret0, _ := ret[0].(*lambda.DeleteFunctionOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteFunction(arg0 *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { ret := m.ctrl.Call(m, "DeleteFunction", arg0) ret0, _ := ret[0].(*lambda.DeleteFunctionOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunction", "(", "arg0", "*", "lambda", ".", "DeleteFunctionInput", ")", "(", "*", "lambda", ".", "DeleteFunctionOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", "...
// DeleteFunction mocks base method
[ "DeleteFunction", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L303-L308
25,091
apex/apex
mock/lambdaiface.go
DeleteFunctionConcurrency
func (m *MockLambdaAPI) DeleteFunctionConcurrency(arg0 *lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error) { ret := m.ctrl.Call(m, "DeleteFunctionConcurrency", arg0) ret0, _ := ret[0].(*lambda.DeleteFunctionConcurrencyOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteFunctionConcurrency(arg0 *lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error) { ret := m.ctrl.Call(m, "DeleteFunctionConcurrency", arg0) ret0, _ := ret[0].(*lambda.DeleteFunctionConcurrencyOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunctionConcurrency", "(", "arg0", "*", "lambda", ".", "DeleteFunctionConcurrencyInput", ")", "(", "*", "lambda", ".", "DeleteFunctionConcurrencyOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ...
// DeleteFunctionConcurrency mocks base method
[ "DeleteFunctionConcurrency", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L316-L321
25,092
apex/apex
mock/lambdaiface.go
DeleteFunctionConcurrencyRequest
func (m *MockLambdaAPI) DeleteFunctionConcurrencyRequest(arg0 *lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) { ret := m.ctrl.Call(m, "DeleteFunctionConcurrencyRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteFunctionConcurrency...
go
func (m *MockLambdaAPI) DeleteFunctionConcurrencyRequest(arg0 *lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) { ret := m.ctrl.Call(m, "DeleteFunctionConcurrencyRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteFunctionConcurrency...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunctionConcurrencyRequest", "(", "arg0", "*", "lambda", ".", "DeleteFunctionConcurrencyInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "DeleteFunctionConcurrencyOutput", ")", "{", "ret...
// DeleteFunctionConcurrencyRequest mocks base method
[ "DeleteFunctionConcurrencyRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L329-L334
25,093
apex/apex
mock/lambdaiface.go
DeleteFunctionConcurrencyWithContext
func (m *MockLambdaAPI) DeleteFunctionConcurrencyWithContext(arg0 aws.Context, arg1 *lambda.DeleteFunctionConcurrencyInput, arg2 ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, ...
go
func (m *MockLambdaAPI) DeleteFunctionConcurrencyWithContext(arg0 aws.Context, arg1 *lambda.DeleteFunctionConcurrencyInput, arg2 ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, ...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunctionConcurrencyWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "DeleteFunctionConcurrencyInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", "...
// DeleteFunctionConcurrencyWithContext mocks base method
[ "DeleteFunctionConcurrencyWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L342-L351
25,094
apex/apex
mock/lambdaiface.go
DeleteFunctionRequest
func (m *MockLambdaAPI) DeleteFunctionRequest(arg0 *lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput) { ret := m.ctrl.Call(m, "DeleteFunctionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteFunctionOutput) return ret0, ret1 }
go
func (m *MockLambdaAPI) DeleteFunctionRequest(arg0 *lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput) { ret := m.ctrl.Call(m, "DeleteFunctionRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.DeleteFunctionOutput) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunctionRequest", "(", "arg0", "*", "lambda", ".", "DeleteFunctionInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "DeleteFunctionOutput", ")", "{", "ret", ":=", "m", ".", "ctrl"...
// DeleteFunctionRequest mocks base method
[ "DeleteFunctionRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L360-L365
25,095
apex/apex
mock/lambdaiface.go
DeleteFunctionWithContext
func (m *MockLambdaAPI) DeleteFunctionWithContext(arg0 aws.Context, arg1 *lambda.DeleteFunctionInput, arg2 ...request.Option) (*lambda.DeleteFunctionOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteFunctionWithContext", vara...
go
func (m *MockLambdaAPI) DeleteFunctionWithContext(arg0 aws.Context, arg1 *lambda.DeleteFunctionInput, arg2 ...request.Option) (*lambda.DeleteFunctionOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "DeleteFunctionWithContext", vara...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "DeleteFunctionWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "DeleteFunctionInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", ".", "DeleteFunctionO...
// DeleteFunctionWithContext mocks base method
[ "DeleteFunctionWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L373-L382
25,096
apex/apex
mock/lambdaiface.go
GetAccountSettings
func (m *MockLambdaAPI) GetAccountSettings(arg0 *lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) { ret := m.ctrl.Call(m, "GetAccountSettings", arg0) ret0, _ := ret[0].(*lambda.GetAccountSettingsOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) GetAccountSettings(arg0 *lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) { ret := m.ctrl.Call(m, "GetAccountSettings", arg0) ret0, _ := ret[0].(*lambda.GetAccountSettingsOutput) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "GetAccountSettings", "(", "arg0", "*", "lambda", ".", "GetAccountSettingsInput", ")", "(", "*", "lambda", ".", "GetAccountSettingsOutput", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "("...
// GetAccountSettings mocks base method
[ "GetAccountSettings", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L391-L396
25,097
apex/apex
mock/lambdaiface.go
GetAccountSettingsRequest
func (m *MockLambdaAPI) GetAccountSettingsRequest(arg0 *lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) { ret := m.ctrl.Call(m, "GetAccountSettingsRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.GetAccountSettingsOutput) return ret0, ret1 }
go
func (m *MockLambdaAPI) GetAccountSettingsRequest(arg0 *lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) { ret := m.ctrl.Call(m, "GetAccountSettingsRequest", arg0) ret0, _ := ret[0].(*request.Request) ret1, _ := ret[1].(*lambda.GetAccountSettingsOutput) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "GetAccountSettingsRequest", "(", "arg0", "*", "lambda", ".", "GetAccountSettingsInput", ")", "(", "*", "request", ".", "Request", ",", "*", "lambda", ".", "GetAccountSettingsOutput", ")", "{", "ret", ":=", "m", "...
// GetAccountSettingsRequest mocks base method
[ "GetAccountSettingsRequest", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L404-L409
25,098
apex/apex
mock/lambdaiface.go
GetAccountSettingsWithContext
func (m *MockLambdaAPI) GetAccountSettingsWithContext(arg0 aws.Context, arg1 *lambda.GetAccountSettingsInput, arg2 ...request.Option) (*lambda.GetAccountSettingsOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAccountSettingsWi...
go
func (m *MockLambdaAPI) GetAccountSettingsWithContext(arg0 aws.Context, arg1 *lambda.GetAccountSettingsInput, arg2 ...request.Option) (*lambda.GetAccountSettingsOutput, error) { varargs := []interface{}{arg0, arg1} for _, a := range arg2 { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "GetAccountSettingsWi...
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "GetAccountSettingsWithContext", "(", "arg0", "aws", ".", "Context", ",", "arg1", "*", "lambda", ".", "GetAccountSettingsInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "lambda", ".", "GetAcco...
// GetAccountSettingsWithContext mocks base method
[ "GetAccountSettingsWithContext", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L417-L426
25,099
apex/apex
mock/lambdaiface.go
GetAlias
func (m *MockLambdaAPI) GetAlias(arg0 *lambda.GetAliasInput) (*lambda.AliasConfiguration, error) { ret := m.ctrl.Call(m, "GetAlias", arg0) ret0, _ := ret[0].(*lambda.AliasConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
go
func (m *MockLambdaAPI) GetAlias(arg0 *lambda.GetAliasInput) (*lambda.AliasConfiguration, error) { ret := m.ctrl.Call(m, "GetAlias", arg0) ret0, _ := ret[0].(*lambda.AliasConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 }
[ "func", "(", "m", "*", "MockLambdaAPI", ")", "GetAlias", "(", "arg0", "*", "lambda", ".", "GetAliasInput", ")", "(", "*", "lambda", ".", "AliasConfiguration", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", ...
// GetAlias mocks base method
[ "GetAlias", "mocks", "base", "method" ]
c31f0a78ce189a8328563fa6a6eb97d04ace4284
https://github.com/apex/apex/blob/c31f0a78ce189a8328563fa6a6eb97d04ace4284/mock/lambdaiface.go#L435-L440