entities

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 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 (
	AuthenticationTypeUserToken AuthenticationType = "user_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 Deployment added in v0.4.4

type Deployment struct {
	ID        ID        `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
}

type FunctionAuth added in v0.1.3

type FunctionAuth struct {
	Token string
	Type  AuthenticationType
}

type FunctionInfo added in v0.2.1

type FunctionInfo struct {
	FunctionName string `json:"function_name"`
	Public       bool   `json:"public"`
}

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 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"`
	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