cmd

package
v0.0.0-...-2114318 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2021 Harsh Varagiya

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ValidateCreateLambda

func ValidateCreateLambda(function *golambda.Function) error

Types

type ApplicationConfig

type ApplicationConfig struct {
	ServerPort       int
	AwsAccountNumber int64
	Debug            bool
}

type LambdaManager

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

func NewLambdaManager

func NewLambdaManager(awsAccountNumber int64) *LambdaManager

func (*LambdaManager) CreateLambdaFunction

func (manager *LambdaManager) CreateLambdaFunction(function *golambda.Function) (*liblambda.LambdaRestApiResponse, error)

func (*LambdaManager) GetManagedLambdaFunctions

func (manager *LambdaManager) GetManagedLambdaFunctions() map[string]string

func (*LambdaManager) InvokeLambdaFunction

func (manager *LambdaManager) InvokeLambdaFunction(functionName string, event *liblambda.Event) (*liblambda.Response, error)

func (*LambdaManager) ModifyLambdaFunction

func (manager *LambdaManager) ModifyLambdaFunction(function *golambda.Function) (*liblambda.LambdaRestApiResponse, error)

func (*LambdaManager) RemoveLambdaFunction

func (manager *LambdaManager) RemoveLambdaFunction(function *golambda.Function) (*liblambda.LambdaRestApiResponse, error)

type LambdaRestApi

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

func (*LambdaRestApi) Create

func (api *LambdaRestApi) Create(ctx *gin.Context)

func (*LambdaRestApi) Delete

func (api *LambdaRestApi) Delete(ctx *gin.Context)

func (*LambdaRestApi) Init

func (api *LambdaRestApi) Init()

func (*LambdaRestApi) Invoke

func (api *LambdaRestApi) Invoke(ctx *gin.Context)

Jump to

Keyboard shortcuts

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