cmd

package
v0.0.0-...-cb7f019 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(awsConfig *buyte.AWSConfig, userId, email string, isPublic bool)

func AssignAWSFlags

func AssignAWSFlags(cmd *cli.Command)

func AuthSetup

func AuthSetup(awsConfig *buyte.AWSConfig)

func CreateSuperUser

func CreateSuperUser(awsConfig *buyte.AWSConfig, email, password string)

func DeleteKeys

func DeleteKeys(awsConfig *buyte.AWSConfig, userId string)

func Execute

func Execute()

Execute starts the program

func NewAWSConfigFromCmd

func NewAWSConfigFromCmd(cmd *cli.Command) *buyte.AWSConfig

func StartApi

func StartApi(cmd *cli.Command, args []string)

func StartEnv

func StartEnv()

func StartProxy

func StartProxy(cmd *cli.Command, args []string)

Types

type ConnectProviderParams

type ConnectProviderParams struct {
	ProviderId string `json:"providerPaymentOptionProviderId"`
	PaymentId  string `json:"providerPaymentOptionPaymentOptionId"`
}

type CreatePaymentParams

type CreatePaymentParams struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

type CreateProviderParams

type CreateProviderParams struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

type DeletePaymentParams

type DeletePaymentParams struct {
	Id string `json:"id"`
}

type DeleteProviderParams

type DeleteProviderParams struct {
	Id string `json:"id"`
}

type DisconnectProviderParams

type DisconnectProviderParams struct {
	Id string `json:"id"`
}

type ListResponsePaymentParams

type ListResponsePaymentParams struct {
	Items []*ResponseProviderParams `json:"items"`
}

type ListResponseProviderParams

type ListResponseProviderParams struct {
	Items []*RepsonseProviderParams `json:"items"`
}

type PaymentsCommand

type PaymentsCommand struct {
	AWSConfig       *buyte.AWSConfig
	User            *user.SuperUser
	Cognito         *cognito.CognitoIdentityProvider
	AuthAccessToken *string
}

func NewPaymentsCommand

func NewPaymentsCommand(awsConfig *buyte.AWSConfig, user *user.SuperUser) (*PaymentsCommand, error)

func (*PaymentsCommand) AddPayment

func (c *PaymentsCommand) AddPayment(name, image string)

func (*PaymentsCommand) DeletePayment

func (c *PaymentsCommand) DeletePayment(id string)

func (*PaymentsCommand) ListPayments

func (c *PaymentsCommand) ListPayments()

func (*PaymentsCommand) UpdatePayment

func (c *PaymentsCommand) UpdatePayment(id, name, image string)

type ProviderCommand

type ProviderCommand struct {
	AWSConfig       *buyte.AWSConfig
	User            *user.SuperUser
	Cognito         *cognito.CognitoIdentityProvider
	AuthAccessToken *string
}

func NewProviderCommand

func NewProviderCommand(awsConfig *buyte.AWSConfig, user *user.SuperUser) (*ProviderCommand, error)

func (*ProviderCommand) AddProvider

func (c *ProviderCommand) AddProvider(name, image string)

func (*ProviderCommand) ConnectPaymentOption

func (c *ProviderCommand) ConnectPaymentOption(providerId, paymentId string)

func (*ProviderCommand) DeleteProvider

func (c *ProviderCommand) DeleteProvider(id string)

func (*ProviderCommand) DisconnectPaymentOption

func (c *ProviderCommand) DisconnectPaymentOption(connectionId string)

func (*ProviderCommand) ListProviders

func (c *ProviderCommand) ListProviders()

func (*ProviderCommand) UpdateProvider

func (c *ProviderCommand) UpdateProvider(id, name, image string)

type RepsonseProviderParams

type RepsonseProviderParams struct {
	Id             string `json:"id"`
	Name           string `json:"name"`
	Image          string `json:"image"`
	PaymentOptions struct {
		Items []struct {
			ConnectionId  string                  `json:"id" mapstructure:"id"`
			PaymentOption *ResponseProviderParams `json:"paymentOption"`
		} `json:"items"`
	} `json:"paymentOptions"`
}

type ResponseConnectProviderParams

type ResponseConnectProviderParams struct {
	Id string `json:"id"`
}

type ResponseProviderParams

type ResponseProviderParams struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

type UpdatePaymentParams

type UpdatePaymentParams struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

type UpdateProviderParams

type UpdateProviderParams struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Image string `json:"image"`
}

Jump to

Keyboard shortcuts

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