Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDNSProviderServiceServer(s grpc.ServiceRegistrar, srv DNSProviderServiceServer)
- type CleanUpRequest
- func (*CleanUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CleanUpRequest) GetDomain() string
- func (x *CleanUpRequest) GetKeyAuth() string
- func (x *CleanUpRequest) GetToken() string
- func (*CleanUpRequest) ProtoMessage()
- func (x *CleanUpRequest) ProtoReflect() protoreflect.Message
- func (x *CleanUpRequest) Reset()
- func (x *CleanUpRequest) String() string
- type CleanUpResponse
- type ConfigureRequest
- func (*ConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureRequest) GetConfig() map[string]string
- func (x *ConfigureRequest) GetProviderName() string
- func (x *ConfigureRequest) GetRecursiveNameservers() []string
- func (*ConfigureRequest) ProtoMessage()
- func (x *ConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureRequest) Reset()
- func (x *ConfigureRequest) String() string
- type ConfigureResponse
- type DNSProviderServiceClient
- type DNSProviderServiceServer
- type PresentRequest
- func (*PresentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PresentRequest) GetDomain() string
- func (x *PresentRequest) GetKeyAuth() string
- func (x *PresentRequest) GetToken() string
- func (*PresentRequest) ProtoMessage()
- func (x *PresentRequest) ProtoReflect() protoreflect.Message
- func (x *PresentRequest) Reset()
- func (x *PresentRequest) String() string
- type PresentResponse
- type TimeoutRequest
- type TimeoutResponse
- func (*TimeoutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TimeoutResponse) GetInterval() *durationpb.Duration
- func (x *TimeoutResponse) GetTimeout() *durationpb.Duration
- func (*TimeoutResponse) ProtoMessage()
- func (x *TimeoutResponse) ProtoReflect() protoreflect.Message
- func (x *TimeoutResponse) Reset()
- func (x *TimeoutResponse) String() string
- type UnimplementedDNSProviderServiceServer
- func (UnimplementedDNSProviderServiceServer) CleanUp(context.Context, *CleanUpRequest) (*CleanUpResponse, error)
- func (UnimplementedDNSProviderServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
- func (UnimplementedDNSProviderServiceServer) Present(context.Context, *PresentRequest) (*PresentResponse, error)
- func (UnimplementedDNSProviderServiceServer) Timeout(context.Context, *TimeoutRequest) (*TimeoutResponse, error)
- type UnsafeDNSProviderServiceServer
Constants ¶
const ( DNSProviderService_Configure_FullMethodName = "/dnsplugin.v1.DNSProviderService/Configure" DNSProviderService_Present_FullMethodName = "/dnsplugin.v1.DNSProviderService/Present" DNSProviderService_CleanUp_FullMethodName = "/dnsplugin.v1.DNSProviderService/CleanUp" DNSProviderService_Timeout_FullMethodName = "/dnsplugin.v1.DNSProviderService/Timeout" )
Variables ¶
var DNSProviderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dnsplugin.v1.DNSProviderService", HandlerType: (*DNSProviderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Configure", Handler: _DNSProviderService_Configure_Handler, }, { MethodName: "Present", Handler: _DNSProviderService_Present_Handler, }, { MethodName: "CleanUp", Handler: _DNSProviderService_CleanUp_Handler, }, { MethodName: "Timeout", Handler: _DNSProviderService_Timeout_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dnsplugin/v1/dnsplugin.proto", }
DNSProviderService_ServiceDesc is the grpc.ServiceDesc for DNSProviderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dnsplugin_v1_dnsplugin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDNSProviderServiceServer ¶
func RegisterDNSProviderServiceServer(s grpc.ServiceRegistrar, srv DNSProviderServiceServer)
Types ¶
type CleanUpRequest ¶
type CleanUpRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` KeyAuth string `protobuf:"bytes,3,opt,name=key_auth,json=keyAuth,proto3" json:"key_auth,omitempty"` // contains filtered or unexported fields }
func (*CleanUpRequest) Descriptor
deprecated
func (*CleanUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use CleanUpRequest.ProtoReflect.Descriptor instead.
func (*CleanUpRequest) GetDomain ¶
func (x *CleanUpRequest) GetDomain() string
func (*CleanUpRequest) GetKeyAuth ¶
func (x *CleanUpRequest) GetKeyAuth() string
func (*CleanUpRequest) GetToken ¶
func (x *CleanUpRequest) GetToken() string
func (*CleanUpRequest) ProtoMessage ¶
func (*CleanUpRequest) ProtoMessage()
func (*CleanUpRequest) ProtoReflect ¶
func (x *CleanUpRequest) ProtoReflect() protoreflect.Message
func (*CleanUpRequest) Reset ¶
func (x *CleanUpRequest) Reset()
func (*CleanUpRequest) String ¶
func (x *CleanUpRequest) String() string
type CleanUpResponse ¶
type CleanUpResponse struct {
// contains filtered or unexported fields
}
func (*CleanUpResponse) Descriptor
deprecated
func (*CleanUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use CleanUpResponse.ProtoReflect.Descriptor instead.
func (*CleanUpResponse) ProtoMessage ¶
func (*CleanUpResponse) ProtoMessage()
func (*CleanUpResponse) ProtoReflect ¶
func (x *CleanUpResponse) ProtoReflect() protoreflect.Message
func (*CleanUpResponse) Reset ¶
func (x *CleanUpResponse) Reset()
func (*CleanUpResponse) String ¶
func (x *CleanUpResponse) String() string
type ConfigureRequest ¶
type ConfigureRequest struct { ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` Config map[string]string `` /* 153-byte string literal not displayed */ RecursiveNameservers []string `protobuf:"bytes,3,rep,name=recursive_nameservers,json=recursiveNameservers,proto3" json:"recursive_nameservers,omitempty"` // contains filtered or unexported fields }
func (*ConfigureRequest) Descriptor
deprecated
func (*ConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.
func (*ConfigureRequest) GetConfig ¶
func (x *ConfigureRequest) GetConfig() map[string]string
func (*ConfigureRequest) GetProviderName ¶
func (x *ConfigureRequest) GetProviderName() string
func (*ConfigureRequest) GetRecursiveNameservers ¶
func (x *ConfigureRequest) GetRecursiveNameservers() []string
func (*ConfigureRequest) ProtoMessage ¶
func (*ConfigureRequest) ProtoMessage()
func (*ConfigureRequest) ProtoReflect ¶
func (x *ConfigureRequest) ProtoReflect() protoreflect.Message
func (*ConfigureRequest) Reset ¶
func (x *ConfigureRequest) Reset()
func (*ConfigureRequest) String ¶
func (x *ConfigureRequest) String() string
type ConfigureResponse ¶
type ConfigureResponse struct {
// contains filtered or unexported fields
}
func (*ConfigureResponse) Descriptor
deprecated
func (*ConfigureResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureResponse.ProtoReflect.Descriptor instead.
func (*ConfigureResponse) ProtoMessage ¶
func (*ConfigureResponse) ProtoMessage()
func (*ConfigureResponse) ProtoReflect ¶
func (x *ConfigureResponse) ProtoReflect() protoreflect.Message
func (*ConfigureResponse) Reset ¶
func (x *ConfigureResponse) Reset()
func (*ConfigureResponse) String ¶
func (x *ConfigureResponse) String() string
type DNSProviderServiceClient ¶
type DNSProviderServiceClient interface { // Configure needs to be called to initialize the provider and set the // configuration. Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error) // Present presents the DNS challenge TXT records to a DNS provider. This // wraps the lego Present call. Present(ctx context.Context, in *PresentRequest, opts ...grpc.CallOption) (*PresentResponse, error) // Cleanup requests that DNS challenge TXT records be cleaned up. This wraps // the lego Cleanup call. CleanUp(ctx context.Context, in *CleanUpRequest, opts ...grpc.CallOption) (*CleanUpResponse, error) // Timeout returns the provider's underlying timeout values. This wraps the // lego Timeout call. Timeout(ctx context.Context, in *TimeoutRequest, opts ...grpc.CallOption) (*TimeoutResponse, error) }
DNSProviderServiceClient is the client API for DNSProviderService 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 NewDNSProviderServiceClient ¶
func NewDNSProviderServiceClient(cc grpc.ClientConnInterface) DNSProviderServiceClient
type DNSProviderServiceServer ¶
type DNSProviderServiceServer interface { // Configure needs to be called to initialize the provider and set the // configuration. Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) // Present presents the DNS challenge TXT records to a DNS provider. This // wraps the lego Present call. Present(context.Context, *PresentRequest) (*PresentResponse, error) // Cleanup requests that DNS challenge TXT records be cleaned up. This wraps // the lego Cleanup call. CleanUp(context.Context, *CleanUpRequest) (*CleanUpResponse, error) // Timeout returns the provider's underlying timeout values. This wraps the // lego Timeout call. Timeout(context.Context, *TimeoutRequest) (*TimeoutResponse, error) // contains filtered or unexported methods }
DNSProviderServiceServer is the server API for DNSProviderService service. All implementations must embed UnimplementedDNSProviderServiceServer for forward compatibility
type PresentRequest ¶
type PresentRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` KeyAuth string `protobuf:"bytes,3,opt,name=key_auth,json=keyAuth,proto3" json:"key_auth,omitempty"` // contains filtered or unexported fields }
func (*PresentRequest) Descriptor
deprecated
func (*PresentRequest) Descriptor() ([]byte, []int)
Deprecated: Use PresentRequest.ProtoReflect.Descriptor instead.
func (*PresentRequest) GetDomain ¶
func (x *PresentRequest) GetDomain() string
func (*PresentRequest) GetKeyAuth ¶
func (x *PresentRequest) GetKeyAuth() string
func (*PresentRequest) GetToken ¶
func (x *PresentRequest) GetToken() string
func (*PresentRequest) ProtoMessage ¶
func (*PresentRequest) ProtoMessage()
func (*PresentRequest) ProtoReflect ¶
func (x *PresentRequest) ProtoReflect() protoreflect.Message
func (*PresentRequest) Reset ¶
func (x *PresentRequest) Reset()
func (*PresentRequest) String ¶
func (x *PresentRequest) String() string
type PresentResponse ¶
type PresentResponse struct {
// contains filtered or unexported fields
}
func (*PresentResponse) Descriptor
deprecated
func (*PresentResponse) Descriptor() ([]byte, []int)
Deprecated: Use PresentResponse.ProtoReflect.Descriptor instead.
func (*PresentResponse) ProtoMessage ¶
func (*PresentResponse) ProtoMessage()
func (*PresentResponse) ProtoReflect ¶
func (x *PresentResponse) ProtoReflect() protoreflect.Message
func (*PresentResponse) Reset ¶
func (x *PresentResponse) Reset()
func (*PresentResponse) String ¶
func (x *PresentResponse) String() string
type TimeoutRequest ¶
type TimeoutRequest struct {
// contains filtered or unexported fields
}
func (*TimeoutRequest) Descriptor
deprecated
func (*TimeoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use TimeoutRequest.ProtoReflect.Descriptor instead.
func (*TimeoutRequest) ProtoMessage ¶
func (*TimeoutRequest) ProtoMessage()
func (*TimeoutRequest) ProtoReflect ¶
func (x *TimeoutRequest) ProtoReflect() protoreflect.Message
func (*TimeoutRequest) Reset ¶
func (x *TimeoutRequest) Reset()
func (*TimeoutRequest) String ¶
func (x *TimeoutRequest) String() string
type TimeoutResponse ¶
type TimeoutResponse struct { Timeout *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` Interval *durationpb.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
func (*TimeoutResponse) Descriptor
deprecated
func (*TimeoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use TimeoutResponse.ProtoReflect.Descriptor instead.
func (*TimeoutResponse) GetInterval ¶
func (x *TimeoutResponse) GetInterval() *durationpb.Duration
func (*TimeoutResponse) GetTimeout ¶
func (x *TimeoutResponse) GetTimeout() *durationpb.Duration
func (*TimeoutResponse) ProtoMessage ¶
func (*TimeoutResponse) ProtoMessage()
func (*TimeoutResponse) ProtoReflect ¶
func (x *TimeoutResponse) ProtoReflect() protoreflect.Message
func (*TimeoutResponse) Reset ¶
func (x *TimeoutResponse) Reset()
func (*TimeoutResponse) String ¶
func (x *TimeoutResponse) String() string
type UnimplementedDNSProviderServiceServer ¶
type UnimplementedDNSProviderServiceServer struct { }
UnimplementedDNSProviderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDNSProviderServiceServer) CleanUp ¶
func (UnimplementedDNSProviderServiceServer) CleanUp(context.Context, *CleanUpRequest) (*CleanUpResponse, error)
func (UnimplementedDNSProviderServiceServer) Configure ¶
func (UnimplementedDNSProviderServiceServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
func (UnimplementedDNSProviderServiceServer) Present ¶
func (UnimplementedDNSProviderServiceServer) Present(context.Context, *PresentRequest) (*PresentResponse, error)
func (UnimplementedDNSProviderServiceServer) Timeout ¶
func (UnimplementedDNSProviderServiceServer) Timeout(context.Context, *TimeoutRequest) (*TimeoutResponse, error)
type UnsafeDNSProviderServiceServer ¶
type UnsafeDNSProviderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDNSProviderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DNSProviderServiceServer will result in compilation errors.