v1

package
v0.0.0-...-872137d Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	DNSProvider_DNSProvider_name = map[int32]string{
		0: "DNS_PROVIDER_UNSPECIFIED",
		1: "gcloud",
	}
	DNSProvider_DNSProvider_value = map[string]int32{
		"DNS_PROVIDER_UNSPECIFIED": 0,
		"gcloud":                   1,
	}
)

Enum value maps for DNSProvider_DNSProvider.

View Source
var (
	CertificatesServiceIssueRequest_DNSProvider_name = map[int32]string{
		0: "DNS_PROVIDER_UNSPECIFIED",
		1: "gcloud",
	}
	CertificatesServiceIssueRequest_DNSProvider_value = map[string]int32{
		"DNS_PROVIDER_UNSPECIFIED": 0,
		"gcloud":                   1,
	}
)

Enum value maps for CertificatesServiceIssueRequest_DNSProvider.

View Source
var (
	AppEnv_AppEnv_name = map[int32]string{
		0: "APP_ENV_UNSPECIFIED",
		1: "local",
		2: "development",
		3: "staging",
		4: "production",
	}
	AppEnv_AppEnv_value = map[string]int32{
		"APP_ENV_UNSPECIFIED": 0,
		"local":               1,
		"development":         2,
		"staging":             3,
		"production":          4,
	}
)

Enum value maps for AppEnv_AppEnv.

View Source
var (
	SpanExporter_SpanExporter_name = map[int32]string{
		0: "noop",
		1: "stdout",
		2: "gcloud",
	}
	SpanExporter_SpanExporter_value = map[string]int32{
		"noop":   0,
		"stdout": 1,
		"gcloud": 2,
	}
)

Enum value maps for SpanExporter_SpanExporter.

View Source
var CertificatesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "certcounter.v1.CertificatesService",
	HandlerType: (*CertificatesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Issue",
			Handler:    _CertificatesService_Issue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "certcounter/v1/certificates.proto",
}

CertificatesService_ServiceDesc is the grpc.ServiceDesc for CertificatesService 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 File_certcounter_v1_certificates_proto protoreflect.FileDescriptor
View Source
var File_certcounter_v1_enum_proto protoreflect.FileDescriptor
View Source
var File_certcounter_v1_testapi_proto protoreflect.FileDescriptor
View Source
var TestAPIService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "certcounter.v1.TestAPIService",
	HandlerType: (*TestAPIServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _TestAPIService_Echo_Handler,
		},
		{
			MethodName: "EchoError",
			Handler:    _TestAPIService_EchoError_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "certcounter/v1/testapi.proto",
}

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

Functions

func RegisterCertificatesServiceHandler

func RegisterCertificatesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCertificatesServiceHandler registers the http handlers for service CertificatesService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCertificatesServiceHandlerClient

func RegisterCertificatesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CertificatesServiceClient) error

RegisterCertificatesServiceHandlerClient registers the http handlers for service CertificatesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CertificatesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CertificatesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CertificatesServiceClient" to call the correct interceptors.

func RegisterCertificatesServiceHandlerFromEndpoint

func RegisterCertificatesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCertificatesServiceHandlerFromEndpoint is same as RegisterCertificatesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCertificatesServiceHandlerServer

func RegisterCertificatesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CertificatesServiceServer) error

RegisterCertificatesServiceHandlerServer registers the http handlers for service CertificatesService to "mux". UnaryRPC :call CertificatesServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCertificatesServiceHandlerFromEndpoint instead.

func RegisterCertificatesServiceServer

func RegisterCertificatesServiceServer(s grpc.ServiceRegistrar, srv CertificatesServiceServer)

func RegisterTestAPIServiceHandler

func RegisterTestAPIServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTestAPIServiceHandler registers the http handlers for service TestAPIService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTestAPIServiceHandlerClient

func RegisterTestAPIServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TestAPIServiceClient) error

RegisterTestAPIServiceHandlerClient registers the http handlers for service TestAPIService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TestAPIServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TestAPIServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TestAPIServiceClient" to call the correct interceptors.

func RegisterTestAPIServiceHandlerFromEndpoint

func RegisterTestAPIServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTestAPIServiceHandlerFromEndpoint is same as RegisterTestAPIServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTestAPIServiceHandlerServer

func RegisterTestAPIServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TestAPIServiceServer) error

RegisterTestAPIServiceHandlerServer registers the http handlers for service TestAPIService to "mux". UnaryRPC :call TestAPIServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTestAPIServiceHandlerFromEndpoint instead.

func RegisterTestAPIServiceServer

func RegisterTestAPIServiceServer(s grpc.ServiceRegistrar, srv TestAPIServiceServer)

Types

type AppEnv

type AppEnv struct {
	// contains filtered or unexported fields
}

func (*AppEnv) Descriptor deprecated

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

Deprecated: Use AppEnv.ProtoReflect.Descriptor instead.

func (*AppEnv) ProtoMessage

func (*AppEnv) ProtoMessage()

func (*AppEnv) ProtoReflect

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

func (*AppEnv) Reset

func (x *AppEnv) Reset()

func (*AppEnv) String

func (x *AppEnv) String() string

func (*AppEnv) Validate

func (m *AppEnv) Validate() error

Validate checks the field values on AppEnv with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AppEnv) ValidateAll

func (m *AppEnv) ValidateAll() error

ValidateAll checks the field values on AppEnv with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppEnvMultiError, or nil if none found.

type AppEnvMultiError

type AppEnvMultiError []error

AppEnvMultiError is an error wrapping multiple validation errors returned by AppEnv.ValidateAll() if the designated constraints aren't met.

func (AppEnvMultiError) AllErrors

func (m AppEnvMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppEnvMultiError) Error

func (m AppEnvMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AppEnvValidationError

type AppEnvValidationError struct {
	// contains filtered or unexported fields
}

AppEnvValidationError is the validation error returned by AppEnv.Validate if the designated constraints aren't met.

func (AppEnvValidationError) Cause

func (e AppEnvValidationError) Cause() error

Cause function returns cause value.

func (AppEnvValidationError) Error

func (e AppEnvValidationError) Error() string

Error satisfies the builtin error interface

func (AppEnvValidationError) ErrorName

func (e AppEnvValidationError) ErrorName() string

ErrorName returns error name.

func (AppEnvValidationError) Field

func (e AppEnvValidationError) Field() string

Field function returns field value.

func (AppEnvValidationError) Key

func (e AppEnvValidationError) Key() bool

Key function returns key value.

func (AppEnvValidationError) Reason

func (e AppEnvValidationError) Reason() string

Reason function returns reason value.

type AppEnv_AppEnv

type AppEnv_AppEnv int32

buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE buf:lint:ignore ENUM_VALUE_PREFIX

const (
	AppEnv_APP_ENV_UNSPECIFIED AppEnv_AppEnv = 0
	AppEnv_local               AppEnv_AppEnv = 1
	AppEnv_development         AppEnv_AppEnv = 2
	AppEnv_staging             AppEnv_AppEnv = 3
	AppEnv_production          AppEnv_AppEnv = 4
)

func (AppEnv_AppEnv) Descriptor

func (AppEnv_AppEnv) Enum

func (x AppEnv_AppEnv) Enum() *AppEnv_AppEnv

func (AppEnv_AppEnv) EnumDescriptor deprecated

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

Deprecated: Use AppEnv_AppEnv.Descriptor instead.

func (AppEnv_AppEnv) Number

func (AppEnv_AppEnv) String

func (x AppEnv_AppEnv) String() string

func (AppEnv_AppEnv) Type

type CertificatesServiceClient

type CertificatesServiceClient interface {
	Issue(ctx context.Context, in *CertificatesServiceIssueRequest, opts ...grpc.CallOption) (*CertificatesServiceIssueResponse, error)
}

CertificatesServiceClient is the client API for CertificatesService 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.

type CertificatesServiceIssueRequest

type CertificatesServiceIssueRequest struct {
	VaultProvider               CertificatesServiceIssueRequest_DNSProvider `` /* 165-byte string literal not displayed */
	AcmeAccountKeyVaultResource string                                      `` /* 148-byte string literal not displayed */
	PrivateKeyVaultResource     string                                      `` /* 134-byte string literal not displayed */
	CertificateVaultResource    string                                      `` /* 135-byte string literal not displayed */
	RenewPrivateKey             bool                                        `protobuf:"varint,5,opt,name=renew_private_key,json=renewPrivateKey,proto3" json:"renew_private_key,omitempty"`
	KeyAlgorithm                string                                      `protobuf:"bytes,6,opt,name=key_algorithm,json=keyAlgorithm,proto3" json:"key_algorithm,omitempty"`
	DnsProvider                 string                                      `protobuf:"bytes,7,opt,name=dns_provider,json=dnsProvider,proto3" json:"dns_provider,omitempty"`
	DnsProviderId               string                                      `protobuf:"bytes,8,opt,name=dns_provider_id,json=dnsProviderId,proto3" json:"dns_provider_id,omitempty"`
	TermsOfServiceAgreed        bool                                        `` /* 126-byte string literal not displayed */
	Email                       string                                      `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"`
	ThresholdOfDaysToExpire     int64                                       `` /* 138-byte string literal not displayed */
	Domains                     []string                                    `protobuf:"bytes,12,rep,name=domains,proto3" json:"domains,omitempty"`
	Staging                     bool                                        `protobuf:"varint,13,opt,name=staging,proto3" json:"staging,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificatesServiceIssueRequest) Descriptor deprecated

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

Deprecated: Use CertificatesServiceIssueRequest.ProtoReflect.Descriptor instead.

func (*CertificatesServiceIssueRequest) GetAcmeAccountKeyVaultResource

func (x *CertificatesServiceIssueRequest) GetAcmeAccountKeyVaultResource() string

func (*CertificatesServiceIssueRequest) GetCertificateVaultResource

func (x *CertificatesServiceIssueRequest) GetCertificateVaultResource() string

func (*CertificatesServiceIssueRequest) GetDnsProvider

func (x *CertificatesServiceIssueRequest) GetDnsProvider() string

func (*CertificatesServiceIssueRequest) GetDnsProviderId

func (x *CertificatesServiceIssueRequest) GetDnsProviderId() string

func (*CertificatesServiceIssueRequest) GetDomains

func (x *CertificatesServiceIssueRequest) GetDomains() []string

func (*CertificatesServiceIssueRequest) GetEmail

func (*CertificatesServiceIssueRequest) GetKeyAlgorithm

func (x *CertificatesServiceIssueRequest) GetKeyAlgorithm() string

func (*CertificatesServiceIssueRequest) GetPrivateKeyVaultResource

func (x *CertificatesServiceIssueRequest) GetPrivateKeyVaultResource() string

func (*CertificatesServiceIssueRequest) GetRenewPrivateKey

func (x *CertificatesServiceIssueRequest) GetRenewPrivateKey() bool

func (*CertificatesServiceIssueRequest) GetStaging

func (x *CertificatesServiceIssueRequest) GetStaging() bool

func (*CertificatesServiceIssueRequest) GetTermsOfServiceAgreed

func (x *CertificatesServiceIssueRequest) GetTermsOfServiceAgreed() bool

func (*CertificatesServiceIssueRequest) GetThresholdOfDaysToExpire

func (x *CertificatesServiceIssueRequest) GetThresholdOfDaysToExpire() int64

func (*CertificatesServiceIssueRequest) GetVaultProvider

func (*CertificatesServiceIssueRequest) ProtoMessage

func (*CertificatesServiceIssueRequest) ProtoMessage()

func (*CertificatesServiceIssueRequest) ProtoReflect

func (*CertificatesServiceIssueRequest) Reset

func (*CertificatesServiceIssueRequest) String

func (*CertificatesServiceIssueRequest) Validate

func (m *CertificatesServiceIssueRequest) Validate() error

Validate checks the field values on CertificatesServiceIssueRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CertificatesServiceIssueRequest) ValidateAll

func (m *CertificatesServiceIssueRequest) ValidateAll() error

ValidateAll checks the field values on CertificatesServiceIssueRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CertificatesServiceIssueRequestMultiError, or nil if none found.

type CertificatesServiceIssueRequestMultiError

type CertificatesServiceIssueRequestMultiError []error

CertificatesServiceIssueRequestMultiError is an error wrapping multiple validation errors returned by CertificatesServiceIssueRequest.ValidateAll() if the designated constraints aren't met.

func (CertificatesServiceIssueRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CertificatesServiceIssueRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CertificatesServiceIssueRequestValidationError

type CertificatesServiceIssueRequestValidationError struct {
	// contains filtered or unexported fields
}

CertificatesServiceIssueRequestValidationError is the validation error returned by CertificatesServiceIssueRequest.Validate if the designated constraints aren't met.

func (CertificatesServiceIssueRequestValidationError) Cause

Cause function returns cause value.

func (CertificatesServiceIssueRequestValidationError) Error

Error satisfies the builtin error interface

func (CertificatesServiceIssueRequestValidationError) ErrorName

ErrorName returns error name.

func (CertificatesServiceIssueRequestValidationError) Field

Field function returns field value.

func (CertificatesServiceIssueRequestValidationError) Key

Key function returns key value.

func (CertificatesServiceIssueRequestValidationError) Reason

Reason function returns reason value.

type CertificatesServiceIssueRequest_DNSProvider

type CertificatesServiceIssueRequest_DNSProvider int32

buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE buf:lint:ignore ENUM_VALUE_PREFIX

const (
	CertificatesServiceIssueRequest_DNS_PROVIDER_UNSPECIFIED CertificatesServiceIssueRequest_DNSProvider = 0
	CertificatesServiceIssueRequest_gcloud                   CertificatesServiceIssueRequest_DNSProvider = 1
)

func (CertificatesServiceIssueRequest_DNSProvider) Descriptor

func (CertificatesServiceIssueRequest_DNSProvider) Enum

func (CertificatesServiceIssueRequest_DNSProvider) EnumDescriptor deprecated

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

Deprecated: Use CertificatesServiceIssueRequest_DNSProvider.Descriptor instead.

func (CertificatesServiceIssueRequest_DNSProvider) Number

func (CertificatesServiceIssueRequest_DNSProvider) String

func (CertificatesServiceIssueRequest_DNSProvider) Type

type CertificatesServiceIssueResponse

type CertificatesServiceIssueResponse struct {
	PrivateKeyVaultVersionResource  string `` /* 157-byte string literal not displayed */
	CertificateVaultVersionResource string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CertificatesServiceIssueResponse) Descriptor deprecated

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

Deprecated: Use CertificatesServiceIssueResponse.ProtoReflect.Descriptor instead.

func (*CertificatesServiceIssueResponse) GetCertificateVaultVersionResource

func (x *CertificatesServiceIssueResponse) GetCertificateVaultVersionResource() string

func (*CertificatesServiceIssueResponse) GetPrivateKeyVaultVersionResource

func (x *CertificatesServiceIssueResponse) GetPrivateKeyVaultVersionResource() string

func (*CertificatesServiceIssueResponse) ProtoMessage

func (*CertificatesServiceIssueResponse) ProtoMessage()

func (*CertificatesServiceIssueResponse) ProtoReflect

func (*CertificatesServiceIssueResponse) Reset

func (*CertificatesServiceIssueResponse) String

func (*CertificatesServiceIssueResponse) Validate

Validate checks the field values on CertificatesServiceIssueResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CertificatesServiceIssueResponse) ValidateAll

func (m *CertificatesServiceIssueResponse) ValidateAll() error

ValidateAll checks the field values on CertificatesServiceIssueResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CertificatesServiceIssueResponseMultiError, or nil if none found.

type CertificatesServiceIssueResponseMultiError

type CertificatesServiceIssueResponseMultiError []error

CertificatesServiceIssueResponseMultiError is an error wrapping multiple validation errors returned by CertificatesServiceIssueResponse.ValidateAll() if the designated constraints aren't met.

func (CertificatesServiceIssueResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CertificatesServiceIssueResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CertificatesServiceIssueResponseValidationError

type CertificatesServiceIssueResponseValidationError struct {
	// contains filtered or unexported fields
}

CertificatesServiceIssueResponseValidationError is the validation error returned by CertificatesServiceIssueResponse.Validate if the designated constraints aren't met.

func (CertificatesServiceIssueResponseValidationError) Cause

Cause function returns cause value.

func (CertificatesServiceIssueResponseValidationError) Error

Error satisfies the builtin error interface

func (CertificatesServiceIssueResponseValidationError) ErrorName

ErrorName returns error name.

func (CertificatesServiceIssueResponseValidationError) Field

Field function returns field value.

func (CertificatesServiceIssueResponseValidationError) Key

Key function returns key value.

func (CertificatesServiceIssueResponseValidationError) Reason

Reason function returns reason value.

type CertificatesServiceServer

type CertificatesServiceServer interface {
	Issue(context.Context, *CertificatesServiceIssueRequest) (*CertificatesServiceIssueResponse, error)
	// contains filtered or unexported methods
}

CertificatesServiceServer is the server API for CertificatesService service. All implementations must embed UnimplementedCertificatesServiceServer for forward compatibility

type DNSProvider

type DNSProvider struct {
	// contains filtered or unexported fields
}

func (*DNSProvider) Descriptor deprecated

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

Deprecated: Use DNSProvider.ProtoReflect.Descriptor instead.

func (*DNSProvider) ProtoMessage

func (*DNSProvider) ProtoMessage()

func (*DNSProvider) ProtoReflect

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

func (*DNSProvider) Reset

func (x *DNSProvider) Reset()

func (*DNSProvider) String

func (x *DNSProvider) String() string

func (*DNSProvider) Validate

func (m *DNSProvider) Validate() error

Validate checks the field values on DNSProvider with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DNSProvider) ValidateAll

func (m *DNSProvider) ValidateAll() error

ValidateAll checks the field values on DNSProvider with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DNSProviderMultiError, or nil if none found.

type DNSProviderMultiError

type DNSProviderMultiError []error

DNSProviderMultiError is an error wrapping multiple validation errors returned by DNSProvider.ValidateAll() if the designated constraints aren't met.

func (DNSProviderMultiError) AllErrors

func (m DNSProviderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DNSProviderMultiError) Error

func (m DNSProviderMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DNSProviderValidationError

type DNSProviderValidationError struct {
	// contains filtered or unexported fields
}

DNSProviderValidationError is the validation error returned by DNSProvider.Validate if the designated constraints aren't met.

func (DNSProviderValidationError) Cause

Cause function returns cause value.

func (DNSProviderValidationError) Error

Error satisfies the builtin error interface

func (DNSProviderValidationError) ErrorName

func (e DNSProviderValidationError) ErrorName() string

ErrorName returns error name.

func (DNSProviderValidationError) Field

Field function returns field value.

func (DNSProviderValidationError) Key

Key function returns key value.

func (DNSProviderValidationError) Reason

Reason function returns reason value.

type DNSProvider_DNSProvider

type DNSProvider_DNSProvider int32

buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE buf:lint:ignore ENUM_VALUE_PREFIX

const (
	DNSProvider_DNS_PROVIDER_UNSPECIFIED DNSProvider_DNSProvider = 0
	DNSProvider_gcloud                   DNSProvider_DNSProvider = 1
)

func (DNSProvider_DNSProvider) Descriptor

func (DNSProvider_DNSProvider) Enum

func (DNSProvider_DNSProvider) EnumDescriptor deprecated

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

Deprecated: Use DNSProvider_DNSProvider.Descriptor instead.

func (DNSProvider_DNSProvider) Number

func (DNSProvider_DNSProvider) String

func (x DNSProvider_DNSProvider) String() string

func (DNSProvider_DNSProvider) Type

type SpanExporter

type SpanExporter struct {
	// contains filtered or unexported fields
}

func (*SpanExporter) Descriptor deprecated

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

Deprecated: Use SpanExporter.ProtoReflect.Descriptor instead.

func (*SpanExporter) ProtoMessage

func (*SpanExporter) ProtoMessage()

func (*SpanExporter) ProtoReflect

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

func (*SpanExporter) Reset

func (x *SpanExporter) Reset()

func (*SpanExporter) String

func (x *SpanExporter) String() string

func (*SpanExporter) Validate

func (m *SpanExporter) Validate() error

Validate checks the field values on SpanExporter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SpanExporter) ValidateAll

func (m *SpanExporter) ValidateAll() error

ValidateAll checks the field values on SpanExporter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SpanExporterMultiError, or nil if none found.

type SpanExporterMultiError

type SpanExporterMultiError []error

SpanExporterMultiError is an error wrapping multiple validation errors returned by SpanExporter.ValidateAll() if the designated constraints aren't met.

func (SpanExporterMultiError) AllErrors

func (m SpanExporterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SpanExporterMultiError) Error

func (m SpanExporterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SpanExporterValidationError

type SpanExporterValidationError struct {
	// contains filtered or unexported fields
}

SpanExporterValidationError is the validation error returned by SpanExporter.Validate if the designated constraints aren't met.

func (SpanExporterValidationError) Cause

Cause function returns cause value.

func (SpanExporterValidationError) Error

Error satisfies the builtin error interface

func (SpanExporterValidationError) ErrorName

func (e SpanExporterValidationError) ErrorName() string

ErrorName returns error name.

func (SpanExporterValidationError) Field

Field function returns field value.

func (SpanExporterValidationError) Key

Key function returns key value.

func (SpanExporterValidationError) Reason

Reason function returns reason value.

type SpanExporter_SpanExporter

type SpanExporter_SpanExporter int32

buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE buf:lint:ignore ENUM_VALUE_PREFIX buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

const (
	SpanExporter_noop   SpanExporter_SpanExporter = 0
	SpanExporter_stdout SpanExporter_SpanExporter = 1
	SpanExporter_gcloud SpanExporter_SpanExporter = 2
)

func (SpanExporter_SpanExporter) Descriptor

func (SpanExporter_SpanExporter) Enum

func (SpanExporter_SpanExporter) EnumDescriptor deprecated

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

Deprecated: Use SpanExporter_SpanExporter.Descriptor instead.

func (SpanExporter_SpanExporter) Number

func (SpanExporter_SpanExporter) String

func (x SpanExporter_SpanExporter) String() string

func (SpanExporter_SpanExporter) Type

type TestAPIServiceClient

type TestAPIServiceClient interface {
	// Echo は受け取った message を返却します
	//
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	Echo(ctx context.Context, in *TestAPIServiceEchoRequestResponse, opts ...grpc.CallOption) (*TestAPIServiceEchoRequestResponse, error)
	// EchoError は意図的にエラーを発生させます
	EchoError(ctx context.Context, in *TestAPIServiceEchoErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TestAPIServiceClient is the client API for TestAPIService 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.

type TestAPIServiceEchoErrorRequest

type TestAPIServiceEchoErrorRequest struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAPIServiceEchoErrorRequest) Descriptor deprecated

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

Deprecated: Use TestAPIServiceEchoErrorRequest.ProtoReflect.Descriptor instead.

func (*TestAPIServiceEchoErrorRequest) GetCode

func (*TestAPIServiceEchoErrorRequest) GetMessage

func (x *TestAPIServiceEchoErrorRequest) GetMessage() string

func (*TestAPIServiceEchoErrorRequest) ProtoMessage

func (*TestAPIServiceEchoErrorRequest) ProtoMessage()

func (*TestAPIServiceEchoErrorRequest) ProtoReflect

func (*TestAPIServiceEchoErrorRequest) Reset

func (x *TestAPIServiceEchoErrorRequest) Reset()

func (*TestAPIServiceEchoErrorRequest) String

func (*TestAPIServiceEchoErrorRequest) Validate

func (m *TestAPIServiceEchoErrorRequest) Validate() error

Validate checks the field values on TestAPIServiceEchoErrorRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestAPIServiceEchoErrorRequest) ValidateAll

func (m *TestAPIServiceEchoErrorRequest) ValidateAll() error

ValidateAll checks the field values on TestAPIServiceEchoErrorRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestAPIServiceEchoErrorRequestMultiError, or nil if none found.

type TestAPIServiceEchoErrorRequestMultiError

type TestAPIServiceEchoErrorRequestMultiError []error

TestAPIServiceEchoErrorRequestMultiError is an error wrapping multiple validation errors returned by TestAPIServiceEchoErrorRequest.ValidateAll() if the designated constraints aren't met.

func (TestAPIServiceEchoErrorRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TestAPIServiceEchoErrorRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestAPIServiceEchoErrorRequestValidationError

type TestAPIServiceEchoErrorRequestValidationError struct {
	// contains filtered or unexported fields
}

TestAPIServiceEchoErrorRequestValidationError is the validation error returned by TestAPIServiceEchoErrorRequest.Validate if the designated constraints aren't met.

func (TestAPIServiceEchoErrorRequestValidationError) Cause

Cause function returns cause value.

func (TestAPIServiceEchoErrorRequestValidationError) Error

Error satisfies the builtin error interface

func (TestAPIServiceEchoErrorRequestValidationError) ErrorName

ErrorName returns error name.

func (TestAPIServiceEchoErrorRequestValidationError) Field

Field function returns field value.

func (TestAPIServiceEchoErrorRequestValidationError) Key

Key function returns key value.

func (TestAPIServiceEchoErrorRequestValidationError) Reason

Reason function returns reason value.

type TestAPIServiceEchoRequestResponse

type TestAPIServiceEchoRequestResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAPIServiceEchoRequestResponse) Descriptor deprecated

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

Deprecated: Use TestAPIServiceEchoRequestResponse.ProtoReflect.Descriptor instead.

func (*TestAPIServiceEchoRequestResponse) GetMessage

func (x *TestAPIServiceEchoRequestResponse) GetMessage() string

func (*TestAPIServiceEchoRequestResponse) ProtoMessage

func (*TestAPIServiceEchoRequestResponse) ProtoMessage()

func (*TestAPIServiceEchoRequestResponse) ProtoReflect

func (*TestAPIServiceEchoRequestResponse) Reset

func (*TestAPIServiceEchoRequestResponse) String

func (*TestAPIServiceEchoRequestResponse) Validate

Validate checks the field values on TestAPIServiceEchoRequestResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TestAPIServiceEchoRequestResponse) ValidateAll

func (m *TestAPIServiceEchoRequestResponse) ValidateAll() error

ValidateAll checks the field values on TestAPIServiceEchoRequestResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestAPIServiceEchoRequestResponseMultiError, or nil if none found.

type TestAPIServiceEchoRequestResponseMultiError

type TestAPIServiceEchoRequestResponseMultiError []error

TestAPIServiceEchoRequestResponseMultiError is an error wrapping multiple validation errors returned by TestAPIServiceEchoRequestResponse.ValidateAll() if the designated constraints aren't met.

func (TestAPIServiceEchoRequestResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TestAPIServiceEchoRequestResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TestAPIServiceEchoRequestResponseValidationError

type TestAPIServiceEchoRequestResponseValidationError struct {
	// contains filtered or unexported fields
}

TestAPIServiceEchoRequestResponseValidationError is the validation error returned by TestAPIServiceEchoRequestResponse.Validate if the designated constraints aren't met.

func (TestAPIServiceEchoRequestResponseValidationError) Cause

Cause function returns cause value.

func (TestAPIServiceEchoRequestResponseValidationError) Error

Error satisfies the builtin error interface

func (TestAPIServiceEchoRequestResponseValidationError) ErrorName

ErrorName returns error name.

func (TestAPIServiceEchoRequestResponseValidationError) Field

Field function returns field value.

func (TestAPIServiceEchoRequestResponseValidationError) Key

Key function returns key value.

func (TestAPIServiceEchoRequestResponseValidationError) Reason

Reason function returns reason value.

type TestAPIServiceServer

type TestAPIServiceServer interface {
	// Echo は受け取った message を返却します
	//
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_REQUEST_STANDARD_NAME
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	Echo(context.Context, *TestAPIServiceEchoRequestResponse) (*TestAPIServiceEchoRequestResponse, error)
	// EchoError は意図的にエラーを発生させます
	EchoError(context.Context, *TestAPIServiceEchoErrorRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TestAPIServiceServer is the server API for TestAPIService service. All implementations must embed UnimplementedTestAPIServiceServer for forward compatibility

type UnimplementedCertificatesServiceServer

type UnimplementedCertificatesServiceServer struct {
}

UnimplementedCertificatesServiceServer must be embedded to have forward compatible implementations.

type UnimplementedTestAPIServiceServer

type UnimplementedTestAPIServiceServer struct {
}

UnimplementedTestAPIServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestAPIServiceServer) EchoError

type UnsafeCertificatesServiceServer

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

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

type UnsafeTestAPIServiceServer

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

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

Jump to

Keyboard shortcuts

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