Documentation ¶
Index ¶
- Variables
- func Config(cmd *cobra.Command, args []string) error
- func Deploy(url string, token string, name string, reader io.Reader, insecure bool, ...) (string, []byte, error)
- func ExecuteCLI()
- func Run(url string, token string, functionID string, file string, insecure bool) ([]byte, error)
- func Test(cmd *cobra.Command, args []string) error
- func Token(functionID string, expires int) (string, error)
- func UpdateConfigFileJSON(jsonFile string, key string, value string) error
- type AttestationResponse
- type DeployResponse
- type DeviceCodeResponse
- type ErrorMsg
- type ErrorRunResponse
- type Message
- type OversizeFunctionError
- type PlainFormatter
- type PublicKeyRequest
- type RunResponse
- type TokenResponse
- type UserError
Constants ¶
This section is empty.
Variables ¶
View Source
var C config.Config
Functions ¶
func ExecuteCLI ¶
func ExecuteCLI()
ExecuteCLI 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.
Types ¶
type AttestationResponse ¶
type AttestationResponse struct {
AttestationDoc string `json:"attestation_doc"`
}
type DeployResponse ¶
type DeployResponse struct {
ID string `json:"id"`
}
type DeviceCodeResponse ¶
type ErrorRunResponse ¶
type ErrorRunResponse struct {
Message string `json:"message"`
}
type OversizeFunctionError ¶
type OversizeFunctionError struct {
// contains filtered or unexported fields
}
func (OversizeFunctionError) Error ¶
func (e OversizeFunctionError) Error() string
type PlainFormatter ¶
type PlainFormatter struct { }
type PublicKeyRequest ¶
type PublicKeyRequest struct {
FunctionTokenPublicKey string `json:"function_token_pk"`
}
type RunResponse ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.