http

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyType_name = map[int32]string{
		0: "KEY_TYPE_UNSPECIFIED",
		1: "KEY_TYPE_ECDSA_EVM",
	}
	KeyType_value = map[string]int32{
		"KEY_TYPE_UNSPECIFIED": 0,
		"KEY_TYPE_ECDSA_EVM":   1,
	}
)

Enum value maps for KeyType.

View Source
var File_capabilities_networking_http_v1alpha_trigger_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthorizedKey

type AuthorizedKey struct {
	Type      KeyType `protobuf:"varint,1,opt,name=type,proto3,enum=capabilities.networking.http.v1alpha.KeyType" json:"type,omitempty"`
	PublicKey string  `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}

Generic and extensible authorized signer abstraction

func (*AuthorizedKey) Descriptor deprecated

func (*AuthorizedKey) Descriptor() ([]byte, []int)

Deprecated: Use AuthorizedKey.ProtoReflect.Descriptor instead.

func (*AuthorizedKey) GetPublicKey

func (x *AuthorizedKey) GetPublicKey() string

func (*AuthorizedKey) GetType

func (x *AuthorizedKey) GetType() KeyType

func (*AuthorizedKey) ProtoMessage

func (*AuthorizedKey) ProtoMessage()

func (*AuthorizedKey) ProtoReflect

func (x *AuthorizedKey) ProtoReflect() protoreflect.Message

func (*AuthorizedKey) Reset

func (x *AuthorizedKey) Reset()

func (*AuthorizedKey) String

func (x *AuthorizedKey) String() string

type Config

type Config struct {

	// Public keys against which the signature of incoming requests are validated
	AuthorizedKeys []*AuthorizedKey `protobuf:"bytes,1,rep,name=authorized_keys,json=authorizedKeys,proto3" json:"authorized_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAuthorizedKeys

func (x *Config) GetAuthorizedKeys() []*AuthorizedKey

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type KeyType

type KeyType int32
const (
	KeyType_KEY_TYPE_UNSPECIFIED KeyType = 0
	KeyType_KEY_TYPE_ECDSA_EVM   KeyType = 1
)

func (KeyType) Descriptor

func (KeyType) Descriptor() protoreflect.EnumDescriptor

func (KeyType) Enum

func (x KeyType) Enum() *KeyType

func (KeyType) EnumDescriptor deprecated

func (KeyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyType.Descriptor instead.

func (KeyType) Number

func (x KeyType) Number() protoreflect.EnumNumber

func (KeyType) String

func (x KeyType) String() string

func (KeyType) Type

func (KeyType) Type() protoreflect.EnumType

type Payload

type Payload struct {

	// JSON input in the HTTP trigger request
	Input *structpb.Struct `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// Key used to sign the HTTP trigger request
	Key *AuthorizedKey `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

func (*Payload) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetInput

func (x *Payload) GetInput() *structpb.Struct

func (*Payload) GetKey

func (x *Payload) GetKey() *AuthorizedKey

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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