Documentation ¶
Index ¶
- Variables
- func Config(cmd *cobra.Command, args []string) error
- func ExecuteCLI()
- func GetKeyRequest(pcrSlice []string) (sdk.KeyRequest, error)
- func Run(url string, auth entities.FunctionAuth, functionID string, file string, ...) ([]byte, error)
- func Test(cmd *cobra.Command, args []string) error
- func Token(issuer string, functionID string, expires int, owner bool) (string, error)
- func UpdateConfigFileJSON(jsonFile string, key string, value string) error
- type AttestationResponse
- type DeployResponse
- type DeviceCodeResponse
- 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.
func GetKeyRequest ¶ added in v0.2.0
func GetKeyRequest(pcrSlice []string) (sdk.KeyRequest, error)
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.