proto

package
v0.0.0-...-5b94510 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 109

Documentation

Index

Constants

View Source
const (
	VA_PerformValidation_FullMethodName = "/va.VA/PerformValidation"
	VA_DoDCV_FullMethodName             = "/va.VA/DoDCV"
)
View Source
const (
	CAA_IsCAAValid_FullMethodName = "/va.CAA/IsCAAValid"
	CAA_DoCAA_FullMethodName      = "/va.CAA/DoCAA"
)

Variables

View Source
var CAA_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "va.CAA",
	HandlerType: (*CAAServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IsCAAValid",
			Handler:    _CAA_IsCAAValid_Handler,
		},
		{
			MethodName: "DoCAA",
			Handler:    _CAA_DoCAA_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "va.proto",
}

CAA_ServiceDesc is the grpc.ServiceDesc for CAA service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var VA_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "va.VA",
	HandlerType: (*VAServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PerformValidation",
			Handler:    _VA_PerformValidation_Handler,
		},
		{
			MethodName: "DoDCV",
			Handler:    _VA_DoDCV_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "va.proto",
}

VA_ServiceDesc is the grpc.ServiceDesc for VA service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCAAServer

func RegisterCAAServer(s grpc.ServiceRegistrar, srv CAAServer)

func RegisterVAServer

func RegisterVAServer(s grpc.ServiceRegistrar, srv VAServer)

Types

type AuthzMeta

type AuthzMeta struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RegID int64  `protobuf:"varint,2,opt,name=regID,proto3" json:"regID,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthzMeta) Descriptor deprecated

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

Deprecated: Use AuthzMeta.ProtoReflect.Descriptor instead.

func (*AuthzMeta) GetId

func (x *AuthzMeta) GetId() string

func (*AuthzMeta) GetRegID

func (x *AuthzMeta) GetRegID() int64

func (*AuthzMeta) ProtoMessage

func (*AuthzMeta) ProtoMessage()

func (*AuthzMeta) ProtoReflect

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

func (*AuthzMeta) Reset

func (x *AuthzMeta) Reset()

func (*AuthzMeta) String

func (x *AuthzMeta) String() string

type CAAClient

type CAAClient interface {
	IsCAAValid(ctx context.Context, in *IsCAAValidRequest, opts ...grpc.CallOption) (*IsCAAValidResponse, error)
	DoCAA(ctx context.Context, in *IsCAAValidRequest, opts ...grpc.CallOption) (*IsCAAValidResponse, error)
}

CAAClient is the client API for CAA service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCAAClient

func NewCAAClient(cc grpc.ClientConnInterface) CAAClient

type CAAServer

type CAAServer interface {
	IsCAAValid(context.Context, *IsCAAValidRequest) (*IsCAAValidResponse, error)
	DoCAA(context.Context, *IsCAAValidRequest) (*IsCAAValidResponse, error)
	// contains filtered or unexported methods
}

CAAServer is the server API for CAA service. All implementations must embed UnimplementedCAAServer for forward compatibility

type IsCAAValidRequest

type IsCAAValidRequest struct {

	// NOTE: Domain may be a name with a wildcard prefix (e.g. `*.example.com`)
	Domain           string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	ValidationMethod string `protobuf:"bytes,2,opt,name=validationMethod,proto3" json:"validationMethod,omitempty"`
	AccountURIID     int64  `protobuf:"varint,3,opt,name=accountURIID,proto3" json:"accountURIID,omitempty"`
	AuthzID          string `protobuf:"bytes,4,opt,name=authzID,proto3" json:"authzID,omitempty"`
	// contains filtered or unexported fields
}

func (*IsCAAValidRequest) Descriptor deprecated

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

Deprecated: Use IsCAAValidRequest.ProtoReflect.Descriptor instead.

func (*IsCAAValidRequest) GetAccountURIID

func (x *IsCAAValidRequest) GetAccountURIID() int64

func (*IsCAAValidRequest) GetAuthzID

func (x *IsCAAValidRequest) GetAuthzID() string

func (*IsCAAValidRequest) GetDomain

func (x *IsCAAValidRequest) GetDomain() string

func (*IsCAAValidRequest) GetValidationMethod

func (x *IsCAAValidRequest) GetValidationMethod() string

func (*IsCAAValidRequest) ProtoMessage

func (*IsCAAValidRequest) ProtoMessage()

func (*IsCAAValidRequest) ProtoReflect

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

func (*IsCAAValidRequest) Reset

func (x *IsCAAValidRequest) Reset()

func (*IsCAAValidRequest) String

func (x *IsCAAValidRequest) String() string

type IsCAAValidResponse

type IsCAAValidResponse struct {
	Problem     *proto.ProblemDetails `protobuf:"bytes,1,opt,name=problem,proto3" json:"problem,omitempty"`
	Perspective string                `protobuf:"bytes,3,opt,name=perspective,proto3" json:"perspective,omitempty"`
	Rir         string                `protobuf:"bytes,4,opt,name=rir,proto3" json:"rir,omitempty"`
	// contains filtered or unexported fields
}

If CAA is valid for the requested domain, the problem will be empty

func (*IsCAAValidResponse) Descriptor deprecated

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

Deprecated: Use IsCAAValidResponse.ProtoReflect.Descriptor instead.

func (*IsCAAValidResponse) GetPerspective

func (x *IsCAAValidResponse) GetPerspective() string

func (*IsCAAValidResponse) GetProblem

func (x *IsCAAValidResponse) GetProblem() *proto.ProblemDetails

func (*IsCAAValidResponse) GetRir

func (x *IsCAAValidResponse) GetRir() string

func (*IsCAAValidResponse) ProtoMessage

func (*IsCAAValidResponse) ProtoMessage()

func (*IsCAAValidResponse) ProtoReflect

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

func (*IsCAAValidResponse) Reset

func (x *IsCAAValidResponse) Reset()

func (*IsCAAValidResponse) String

func (x *IsCAAValidResponse) String() string

type PerformValidationRequest

type PerformValidationRequest struct {
	DnsName                  string           `protobuf:"bytes,1,opt,name=dnsName,proto3" json:"dnsName,omitempty"`
	Challenge                *proto.Challenge `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Authz                    *AuthzMeta       `protobuf:"bytes,3,opt,name=authz,proto3" json:"authz,omitempty"`
	ExpectedKeyAuthorization string           `protobuf:"bytes,4,opt,name=expectedKeyAuthorization,proto3" json:"expectedKeyAuthorization,omitempty"`
	// contains filtered or unexported fields
}

func (*PerformValidationRequest) Descriptor deprecated

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

Deprecated: Use PerformValidationRequest.ProtoReflect.Descriptor instead.

func (*PerformValidationRequest) GetAuthz

func (x *PerformValidationRequest) GetAuthz() *AuthzMeta

func (*PerformValidationRequest) GetChallenge

func (x *PerformValidationRequest) GetChallenge() *proto.Challenge

func (*PerformValidationRequest) GetDnsName

func (x *PerformValidationRequest) GetDnsName() string

func (*PerformValidationRequest) GetExpectedKeyAuthorization

func (x *PerformValidationRequest) GetExpectedKeyAuthorization() string

func (*PerformValidationRequest) ProtoMessage

func (*PerformValidationRequest) ProtoMessage()

func (*PerformValidationRequest) ProtoReflect

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

func (*PerformValidationRequest) Reset

func (x *PerformValidationRequest) Reset()

func (*PerformValidationRequest) String

func (x *PerformValidationRequest) String() string

type UnimplementedCAAServer

type UnimplementedCAAServer struct {
}

UnimplementedCAAServer must be embedded to have forward compatible implementations.

func (UnimplementedCAAServer) DoCAA

func (UnimplementedCAAServer) IsCAAValid

type UnimplementedVAServer

type UnimplementedVAServer struct {
}

UnimplementedVAServer must be embedded to have forward compatible implementations.

func (UnimplementedVAServer) DoDCV

func (UnimplementedVAServer) PerformValidation

type UnsafeCAAServer

type UnsafeCAAServer interface {
	// contains filtered or unexported methods
}

UnsafeCAAServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CAAServer will result in compilation errors.

type UnsafeVAServer

type UnsafeVAServer interface {
	// contains filtered or unexported methods
}

UnsafeVAServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VAServer will result in compilation errors.

type VAClient

type VAClient interface {
	PerformValidation(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*ValidationResult, error)
	DoDCV(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*ValidationResult, error)
}

VAClient is the client API for VA service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewVAClient

func NewVAClient(cc grpc.ClientConnInterface) VAClient

type VAServer

type VAServer interface {
	PerformValidation(context.Context, *PerformValidationRequest) (*ValidationResult, error)
	DoDCV(context.Context, *PerformValidationRequest) (*ValidationResult, error)
	// contains filtered or unexported methods
}

VAServer is the server API for VA service. All implementations must embed UnimplementedVAServer for forward compatibility

type ValidationResult

type ValidationResult struct {
	Records     []*proto.ValidationRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	Problem     *proto.ProblemDetails     `protobuf:"bytes,2,opt,name=problem,proto3" json:"problem,omitempty"`
	Perspective string                    `protobuf:"bytes,3,opt,name=perspective,proto3" json:"perspective,omitempty"`
	Rir         string                    `protobuf:"bytes,4,opt,name=rir,proto3" json:"rir,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationResult) Descriptor deprecated

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

Deprecated: Use ValidationResult.ProtoReflect.Descriptor instead.

func (*ValidationResult) GetPerspective

func (x *ValidationResult) GetPerspective() string

func (*ValidationResult) GetProblem

func (x *ValidationResult) GetProblem() *proto.ProblemDetails

func (*ValidationResult) GetRecords

func (x *ValidationResult) GetRecords() []*proto.ValidationRecord

func (*ValidationResult) GetRir

func (x *ValidationResult) GetRir() string

func (*ValidationResult) ProtoMessage

func (*ValidationResult) ProtoMessage()

func (*ValidationResult) ProtoReflect

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

func (*ValidationResult) Reset

func (x *ValidationResult) Reset()

func (*ValidationResult) String

func (x *ValidationResult) String() string

Jump to

Keyboard shortcuts

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