entities

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationWrapper added in v0.1.2

type AttestationWrapper struct {
	Type    string `json:"type"`
	Message []byte `json:"message"`
}

type AuthenticationType added in v0.1.3

type AuthenticationType string
const (
	AuthenticationTypeAuth0         AuthenticationType = "auth0"
	AuthenticationTypeFunctionToken AuthenticationType = "token"
)

func (AuthenticationType) String added in v0.1.3

func (a AuthenticationType) String() string

func (AuthenticationType) Validate added in v0.1.3

func (a AuthenticationType) Validate() error

type DeployRequest added in v0.1.2

type DeployRequest struct {
	// Nonce is used by the client to verify the nonce received back in
	// the attestation doc
	Nonce     []byte `json:"nonce"`
	AuthToken string `json:"auth_token"`
}

type DeploymentName added in v0.2.3

type DeploymentName struct {
	ID        ID
	Name      string
	CreatedAt time.Time
}

type FunctionAuth added in v0.1.3

type FunctionAuth struct {
	Token string
	Type  AuthenticationType
}

type FunctionInfo added in v0.2.1

type FunctionInfo struct {
	FunctionTokenPublicKey string `json:"function_token_pk"`
	FunctionName           string `json:"function_name"`
}

type FunctionMetadata added in v0.1.2

type FunctionMetadata struct {
	FunctionAuthenticationType string `json:"function_authentication_type"`
}

type ID added in v0.1.2

type ID string

func MustParse added in v0.1.2

func MustParse(in string) ID

func NewID added in v0.1.2

func NewID() ID

func ParseID added in v0.1.2

func ParseID(in string) (ID, error)

func (ID) String added in v0.1.2

func (id ID) String() string

func (ID) Value added in v0.1.2

func (id ID) Value() (driver.Value, error)

type RunJobsResponse added in v0.1.2

type RunJobsResponse struct {
	FunctionID ID   `json:"function_id"`
	Done       bool `json:"done"`
}

type RunRequest added in v0.1.2

type RunRequest struct {
	// Nonce is used by the client to verify the nonce received back in
	// the attestation doc
	Nonce     []byte `json:"nonce"`
	AuthToken string `json:"auth_token"`
}

type RunResults added in v0.1.2

type RunResults struct {
	Type    string `json:"type"`
	Message []byte `json:"message"`
}

type SetDeploymentIDRequest added in v0.1.2

type SetDeploymentIDRequest struct {
	ID string `json:"id"`
}

type StartRequest

type StartRequest struct {
	// Nonce is used by the client to verify the nonce received back in
	// the attestation doc
	Nonce         []byte           `json:"nonce"`
	FunctionToken string           `json:"function_token,omitempty"`
	Metadata      FunctionMetadata `json:"metadata,omitempty"`
}

type TestRequest added in v0.1.2

type TestRequest struct {
	Nonce     []byte `json:"nonce"`
	AuthToken string `json:"auth_token"`
}

Jump to

Keyboard shortcuts

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