Documentation ¶
Overview ¶
Package v1beta2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParseAndValidateCertificate(owner sdk.Address, crt, pub []byte) (*x509.Certificate, error)
- func PrefixCertificateID() []byte
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type CertID
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)
- func (m *Certificate) GetCert() []byte
- func (m *Certificate) GetPubkey() []byte
- func (m *Certificate) GetState() Certificate_State
- func (m Certificate) IsState(state Certificate_State) bool
- func (m *Certificate) Marshal() (dAtA []byte, err error)
- func (m *Certificate) MarshalTo(dAtA []byte) (int, error)
- func (m *Certificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Certificate) ProtoMessage()
- func (m *Certificate) Reset()
- func (m *Certificate) Size() (n int)
- func (m *Certificate) String() string
- func (m *Certificate) Unmarshal(dAtA []byte) error
- func (m Certificate) Validate(owner sdk.Address) error
- func (m *Certificate) XXX_DiscardUnknown()
- func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Certificate) XXX_Merge(src proto.Message)
- func (m *Certificate) XXX_Size() int
- func (m *Certificate) XXX_Unmarshal(b []byte) error
- type CertificateFilter
- func (*CertificateFilter) Descriptor() ([]byte, []int)
- func (m *CertificateFilter) GetOwner() string
- func (m *CertificateFilter) GetSerial() string
- func (m *CertificateFilter) GetState() string
- func (m *CertificateFilter) Marshal() (dAtA []byte, err error)
- func (m *CertificateFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *CertificateFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CertificateFilter) ProtoMessage()
- func (m *CertificateFilter) Reset()
- func (m *CertificateFilter) Size() (n int)
- func (m *CertificateFilter) String() string
- func (m *CertificateFilter) Unmarshal(dAtA []byte) error
- func (m *CertificateFilter) XXX_DiscardUnknown()
- func (m *CertificateFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertificateFilter) XXX_Merge(src proto.Message)
- func (m *CertificateFilter) XXX_Size() int
- func (m *CertificateFilter) XXX_Unmarshal(b []byte) error
- type CertificateID
- func (*CertificateID) Descriptor() ([]byte, []int)
- func (m *CertificateID) Equals(val CertificateID) bool
- func (m *CertificateID) GetOwner() string
- func (m *CertificateID) GetSerial() string
- func (m *CertificateID) Marshal() (dAtA []byte, err error)
- func (m *CertificateID) MarshalTo(dAtA []byte) (int, error)
- func (m *CertificateID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CertificateID) ProtoMessage()
- func (m *CertificateID) Reset()
- func (m *CertificateID) Size() (n int)
- func (m *CertificateID) String() string
- func (m *CertificateID) Unmarshal(dAtA []byte) error
- func (m *CertificateID) XXX_DiscardUnknown()
- func (m *CertificateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertificateID) XXX_Merge(src proto.Message)
- func (m *CertificateID) XXX_Size() int
- func (m *CertificateID) XXX_Unmarshal(b []byte) error
- type CertificateResponse
- func (*CertificateResponse) Descriptor() ([]byte, []int)
- func (m *CertificateResponse) GetCertificate() Certificate
- func (m *CertificateResponse) GetSerial() string
- func (m *CertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *CertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CertificateResponse) ProtoMessage()
- func (m *CertificateResponse) Reset()
- func (m *CertificateResponse) Size() (n int)
- func (m *CertificateResponse) String() string
- func (m *CertificateResponse) Unmarshal(dAtA []byte) error
- func (m *CertificateResponse) XXX_DiscardUnknown()
- func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertificateResponse) XXX_Merge(src proto.Message)
- func (m *CertificateResponse) XXX_Size() int
- func (m *CertificateResponse) XXX_Unmarshal(b []byte) error
- type Certificate_State
- type Certificates
- type CertificatesResponse
- type GenesisCertificate
- func (*GenesisCertificate) Descriptor() ([]byte, []int)
- func (m *GenesisCertificate) GetCertificate() Certificate
- func (m *GenesisCertificate) GetOwner() string
- func (m *GenesisCertificate) Marshal() (dAtA []byte, err error)
- func (m *GenesisCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisCertificate) ProtoMessage()
- func (m *GenesisCertificate) Reset()
- func (m *GenesisCertificate) Size() (n int)
- func (m *GenesisCertificate) String() string
- func (m *GenesisCertificate) Unmarshal(dAtA []byte) error
- func (m GenesisCertificate) Validate() error
- func (m *GenesisCertificate) XXX_DiscardUnknown()
- func (m *GenesisCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisCertificate) XXX_Merge(src proto.Message)
- func (m *GenesisCertificate) XXX_Size() int
- func (m *GenesisCertificate) XXX_Unmarshal(b []byte) error
- type GenesisCertificates
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCertificates() GenesisCertificates
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateCertificate
- func (*MsgCreateCertificate) Descriptor() ([]byte, []int)
- func (m *MsgCreateCertificate) GetCert() []byte
- func (m *MsgCreateCertificate) GetOwner() string
- func (m *MsgCreateCertificate) GetPubkey() []byte
- func (m MsgCreateCertificate) GetSignBytes() []byte
- func (m MsgCreateCertificate) GetSigners() []sdk.AccAddress
- func (m *MsgCreateCertificate) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCertificate) ProtoMessage()
- func (m *MsgCreateCertificate) Reset()
- func (m MsgCreateCertificate) Route() string
- func (m *MsgCreateCertificate) Size() (n int)
- func (m *MsgCreateCertificate) String() string
- func (m MsgCreateCertificate) Type() string
- func (m *MsgCreateCertificate) Unmarshal(dAtA []byte) error
- func (m MsgCreateCertificate) ValidateBasic() error
- func (m *MsgCreateCertificate) XXX_DiscardUnknown()
- func (m *MsgCreateCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCertificate) XXX_Merge(src proto.Message)
- func (m *MsgCreateCertificate) XXX_Size() int
- func (m *MsgCreateCertificate) XXX_Unmarshal(b []byte) error
- type MsgCreateCertificateResponse
- func (*MsgCreateCertificateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCertificateResponse) ProtoMessage()
- func (m *MsgCreateCertificateResponse) Reset()
- func (m *MsgCreateCertificateResponse) Size() (n int)
- func (m *MsgCreateCertificateResponse) String() string
- func (m *MsgCreateCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateCertificateResponse) XXX_DiscardUnknown()
- func (m *MsgCreateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCertificateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateCertificateResponse) XXX_Size() int
- func (m *MsgCreateCertificateResponse) XXX_Unmarshal(b []byte) error
- type MsgRevokeCertificate
- func (*MsgRevokeCertificate) Descriptor() ([]byte, []int)
- func (m *MsgRevokeCertificate) GetID() CertificateID
- func (m MsgRevokeCertificate) GetSignBytes() []byte
- func (m MsgRevokeCertificate) GetSigners() []sdk.AccAddress
- func (m *MsgRevokeCertificate) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeCertificate) ProtoMessage()
- func (m *MsgRevokeCertificate) Reset()
- func (m MsgRevokeCertificate) Route() string
- func (m *MsgRevokeCertificate) Size() (n int)
- func (m *MsgRevokeCertificate) String() string
- func (m MsgRevokeCertificate) Type() string
- func (m *MsgRevokeCertificate) Unmarshal(dAtA []byte) error
- func (m MsgRevokeCertificate) ValidateBasic() error
- func (m *MsgRevokeCertificate) XXX_DiscardUnknown()
- func (m *MsgRevokeCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeCertificate) XXX_Merge(src proto.Message)
- func (m *MsgRevokeCertificate) XXX_Size() int
- func (m *MsgRevokeCertificate) XXX_Unmarshal(b []byte) error
- type MsgRevokeCertificateResponse
- func (*MsgRevokeCertificateResponse) Descriptor() ([]byte, []int)
- func (m *MsgRevokeCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeCertificateResponse) ProtoMessage()
- func (m *MsgRevokeCertificateResponse) Reset()
- func (m *MsgRevokeCertificateResponse) Size() (n int)
- func (m *MsgRevokeCertificateResponse) String() string
- func (m *MsgRevokeCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeCertificateResponse) XXX_DiscardUnknown()
- func (m *MsgRevokeCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeCertificateResponse) XXX_Merge(src proto.Message)
- func (m *MsgRevokeCertificateResponse) XXX_Size() int
- func (m *MsgRevokeCertificateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryCertificatesRequest
- func (*QueryCertificatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCertificatesRequest) GetFilter() CertificateFilter
- func (m *QueryCertificatesRequest) GetPagination() *query.PageRequest
- func (m *QueryCertificatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificatesRequest) ProtoMessage()
- func (m *QueryCertificatesRequest) Reset()
- func (m *QueryCertificatesRequest) Size() (n int)
- func (m *QueryCertificatesRequest) String() string
- func (m *QueryCertificatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCertificatesRequest) XXX_DiscardUnknown()
- func (m *QueryCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCertificatesRequest) XXX_Size() int
- func (m *QueryCertificatesRequest) XXX_Unmarshal(b []byte) error
- type QueryCertificatesResponse
- func (*QueryCertificatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryCertificatesResponse) GetCertificates() CertificatesResponse
- func (m *QueryCertificatesResponse) GetPagination() *query.PageResponse
- func (m *QueryCertificatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificatesResponse) ProtoMessage()
- func (m *QueryCertificatesResponse) Reset()
- func (m *QueryCertificatesResponse) Size() (n int)
- func (m *QueryCertificatesResponse) String() string
- func (m *QueryCertificatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCertificatesResponse) XXX_DiscardUnknown()
- func (m *QueryCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCertificatesResponse) XXX_Size() int
- func (m *QueryCertificatesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "cert" // StoreKey is the store key string for provider StoreKey = ModuleName // RouterKey is the message route for provider RouterKey = ModuleName )
const ( MsgTypeCreateCertificate = "cert-create-certificate" MsgTypeRevokeCertificate = "cert-revoke-certificate" )
const ( PemBlkTypeCertificate = "CERTIFICATE" PemBlkTypeECPrivateKey = "EC PRIVATE KEY" PemBlkTypeECPublicKey = "EC PUBLIC KEY" )
Variables ¶
var ( ErrInvalidLengthCert = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCert = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCert = fmt.Errorf("proto: unexpected end of group") )
var ( // ErrCertificateNotFound certificate not found ErrCertificateNotFound = sdkerrors.Register(ModuleName, errCertificateNotFound, "certificate not found") // ErrInvalidAddress invalid trusted auditor address ErrInvalidAddress = sdkerrors.Register(ModuleName, errInvalidAddress, "invalid address") // ErrCertificateExists certificate already exists ErrCertificateExists = sdkerrors.Register(ModuleName, errCertificateExists, "certificate exists") // ErrCertificateAlreadyRevoked certificate already revoked ErrCertificateAlreadyRevoked = sdkerrors.Register(ModuleName, errCertificateAlreadyRevoked, "certificate already revoked") // ErrInvalidSerialNumber invalid serial number ErrInvalidSerialNumber = sdkerrors.Register(ModuleName, errInvalidSerialNumber, "invalid serial number") // ErrInvalidCertificateValue certificate content is not valid ErrInvalidCertificateValue = sdkerrors.Register(ModuleName, errInvalidCertificateValue, "invalid certificate value") // ErrInvalidPubkeyValue public key is not valid ErrInvalidPubkeyValue = sdkerrors.Register(ModuleName, errInvalidPubkeyValue, "invalid pubkey value") // ErrInvalidState invalid certificate state ErrInvalidState = sdkerrors.Register(ModuleName, errInvalidState, "invalid state") // ErrInvalidState invalid certificate state ErrInvalidKeySize = sdkerrors.Register(ModuleName, errInvalidKeySize, "invalid key size") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var Certificate_State_name = map[int32]string{
0: "invalid",
1: "valid",
2: "revoked",
}
var Certificate_State_value = map[string]int32{
"invalid": 0,
"valid": 1,
"revoked": 2,
}
var ( // ModuleCdc references the global x/provider module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/provider and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func PrefixCertificateID ¶
func PrefixCertificateID() []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/provider interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec register concrete types on codec
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Certificate ¶
type Certificate struct { State Certificate_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.cert.v1beta2.Certificate_State" json:"state" yaml:"state"` Cert []byte `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert" yaml:"cert"` Pubkey []byte `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` }
Certificate stores state, certificate and it's public key
func (*Certificate) Descriptor ¶
func (*Certificate) Descriptor() ([]byte, []int)
func (*Certificate) GetCert ¶
func (m *Certificate) GetCert() []byte
func (*Certificate) GetPubkey ¶
func (m *Certificate) GetPubkey() []byte
func (*Certificate) GetState ¶
func (m *Certificate) GetState() Certificate_State
func (Certificate) IsState ¶
func (m Certificate) IsState(state Certificate_State) bool
func (*Certificate) Marshal ¶
func (m *Certificate) Marshal() (dAtA []byte, err error)
func (*Certificate) MarshalToSizedBuffer ¶
func (m *Certificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) Reset ¶
func (m *Certificate) Reset()
func (*Certificate) Size ¶
func (m *Certificate) Size() (n int)
func (*Certificate) String ¶
func (m *Certificate) String() string
func (*Certificate) Unmarshal ¶
func (m *Certificate) Unmarshal(dAtA []byte) error
func (*Certificate) XXX_DiscardUnknown ¶
func (m *Certificate) XXX_DiscardUnknown()
func (*Certificate) XXX_Marshal ¶
func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Certificate) XXX_Merge ¶
func (m *Certificate) XXX_Merge(src proto.Message)
func (*Certificate) XXX_Size ¶
func (m *Certificate) XXX_Size() int
func (*Certificate) XXX_Unmarshal ¶
func (m *Certificate) XXX_Unmarshal(b []byte) error
type CertificateFilter ¶
type CertificateFilter struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` Serial string `protobuf:"bytes,2,opt,name=serial,proto3" json:"serial" yaml:"serial"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state" yaml:"state"` }
CertificateFilter defines filters used to filter certificates
func (*CertificateFilter) Descriptor ¶
func (*CertificateFilter) Descriptor() ([]byte, []int)
func (*CertificateFilter) GetOwner ¶
func (m *CertificateFilter) GetOwner() string
func (*CertificateFilter) GetSerial ¶
func (m *CertificateFilter) GetSerial() string
func (*CertificateFilter) GetState ¶
func (m *CertificateFilter) GetState() string
func (*CertificateFilter) Marshal ¶
func (m *CertificateFilter) Marshal() (dAtA []byte, err error)
func (*CertificateFilter) MarshalTo ¶
func (m *CertificateFilter) MarshalTo(dAtA []byte) (int, error)
func (*CertificateFilter) MarshalToSizedBuffer ¶
func (m *CertificateFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CertificateFilter) ProtoMessage ¶
func (*CertificateFilter) ProtoMessage()
func (*CertificateFilter) Reset ¶
func (m *CertificateFilter) Reset()
func (*CertificateFilter) Size ¶
func (m *CertificateFilter) Size() (n int)
func (*CertificateFilter) String ¶
func (m *CertificateFilter) String() string
func (*CertificateFilter) Unmarshal ¶
func (m *CertificateFilter) Unmarshal(dAtA []byte) error
func (*CertificateFilter) XXX_DiscardUnknown ¶
func (m *CertificateFilter) XXX_DiscardUnknown()
func (*CertificateFilter) XXX_Marshal ¶
func (m *CertificateFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertificateFilter) XXX_Merge ¶
func (m *CertificateFilter) XXX_Merge(src proto.Message)
func (*CertificateFilter) XXX_Size ¶
func (m *CertificateFilter) XXX_Size() int
func (*CertificateFilter) XXX_Unmarshal ¶
func (m *CertificateFilter) XXX_Unmarshal(b []byte) error
type CertificateID ¶
type CertificateID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` Serial string `protobuf:"bytes,2,opt,name=serial,proto3" json:"serial" yaml:"serial"` }
CertificateID stores owner and sequence number
func (*CertificateID) Descriptor ¶
func (*CertificateID) Descriptor() ([]byte, []int)
func (*CertificateID) Equals ¶
func (m *CertificateID) Equals(val CertificateID) bool
func (*CertificateID) GetOwner ¶
func (m *CertificateID) GetOwner() string
func (*CertificateID) GetSerial ¶
func (m *CertificateID) GetSerial() string
func (*CertificateID) Marshal ¶
func (m *CertificateID) Marshal() (dAtA []byte, err error)
func (*CertificateID) MarshalToSizedBuffer ¶
func (m *CertificateID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CertificateID) ProtoMessage ¶
func (*CertificateID) ProtoMessage()
func (*CertificateID) Reset ¶
func (m *CertificateID) Reset()
func (*CertificateID) Size ¶
func (m *CertificateID) Size() (n int)
func (*CertificateID) String ¶
func (m *CertificateID) String() string
func (*CertificateID) Unmarshal ¶
func (m *CertificateID) Unmarshal(dAtA []byte) error
func (*CertificateID) XXX_DiscardUnknown ¶
func (m *CertificateID) XXX_DiscardUnknown()
func (*CertificateID) XXX_Marshal ¶
func (m *CertificateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertificateID) XXX_Merge ¶
func (m *CertificateID) XXX_Merge(src proto.Message)
func (*CertificateID) XXX_Size ¶
func (m *CertificateID) XXX_Size() int
func (*CertificateID) XXX_Unmarshal ¶
func (m *CertificateID) XXX_Unmarshal(b []byte) error
type CertificateResponse ¶
type CertificateResponse struct { Certificate Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate" yaml:"certificate"` Serial string `protobuf:"bytes,2,opt,name=serial,proto3" json:"serial" yaml:"serial"` }
CertificateResponse contains a single X509 certificate and its serial number
func (*CertificateResponse) Descriptor ¶
func (*CertificateResponse) Descriptor() ([]byte, []int)
func (*CertificateResponse) GetCertificate ¶
func (m *CertificateResponse) GetCertificate() Certificate
func (*CertificateResponse) GetSerial ¶
func (m *CertificateResponse) GetSerial() string
func (*CertificateResponse) Marshal ¶
func (m *CertificateResponse) Marshal() (dAtA []byte, err error)
func (*CertificateResponse) MarshalTo ¶
func (m *CertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*CertificateResponse) MarshalToSizedBuffer ¶
func (m *CertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CertificateResponse) ProtoMessage ¶
func (*CertificateResponse) ProtoMessage()
func (*CertificateResponse) Reset ¶
func (m *CertificateResponse) Reset()
func (*CertificateResponse) Size ¶
func (m *CertificateResponse) Size() (n int)
func (*CertificateResponse) String ¶
func (m *CertificateResponse) String() string
func (*CertificateResponse) Unmarshal ¶
func (m *CertificateResponse) Unmarshal(dAtA []byte) error
func (*CertificateResponse) XXX_DiscardUnknown ¶
func (m *CertificateResponse) XXX_DiscardUnknown()
func (*CertificateResponse) XXX_Marshal ¶
func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertificateResponse) XXX_Merge ¶
func (m *CertificateResponse) XXX_Merge(src proto.Message)
func (*CertificateResponse) XXX_Size ¶
func (m *CertificateResponse) XXX_Size() int
func (*CertificateResponse) XXX_Unmarshal ¶
func (m *CertificateResponse) XXX_Unmarshal(b []byte) error
type Certificate_State ¶
type Certificate_State int32
State is an enum which refers to state of deployment
const ( // Prefix should start with 0 in enum. So declaring dummy state CertificateStateInvalid Certificate_State = 0 // CertificateValid denotes state for deployment active CertificateValid Certificate_State = 1 // CertificateRevoked denotes state for deployment closed CertificateRevoked Certificate_State = 2 )
func (Certificate_State) EnumDescriptor ¶
func (Certificate_State) EnumDescriptor() ([]byte, []int)
func (Certificate_State) String ¶
func (x Certificate_State) String() string
type Certificates ¶
type Certificates []Certificate
Certificates is the collection of Certificate
func (Certificates) Contains ¶
func (obj Certificates) Contains(cert Certificate) bool
func (Certificates) String ¶
func (obj Certificates) String() string
String implements the Stringer interface for a Certificates object.
type CertificatesResponse ¶
type CertificatesResponse []CertificateResponse
type GenesisCertificate ¶
type GenesisCertificate struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` Certificate Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate" yaml:"certificate"` }
GenesisCertificate defines certificate entry at genesis
func (*GenesisCertificate) Descriptor ¶
func (*GenesisCertificate) Descriptor() ([]byte, []int)
func (*GenesisCertificate) GetCertificate ¶
func (m *GenesisCertificate) GetCertificate() Certificate
func (*GenesisCertificate) GetOwner ¶
func (m *GenesisCertificate) GetOwner() string
func (*GenesisCertificate) Marshal ¶
func (m *GenesisCertificate) Marshal() (dAtA []byte, err error)
func (*GenesisCertificate) MarshalTo ¶
func (m *GenesisCertificate) MarshalTo(dAtA []byte) (int, error)
func (*GenesisCertificate) MarshalToSizedBuffer ¶
func (m *GenesisCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisCertificate) ProtoMessage ¶
func (*GenesisCertificate) ProtoMessage()
func (*GenesisCertificate) Reset ¶
func (m *GenesisCertificate) Reset()
func (*GenesisCertificate) Size ¶
func (m *GenesisCertificate) Size() (n int)
func (*GenesisCertificate) String ¶
func (m *GenesisCertificate) String() string
func (*GenesisCertificate) Unmarshal ¶
func (m *GenesisCertificate) Unmarshal(dAtA []byte) error
func (GenesisCertificate) Validate ¶
func (m GenesisCertificate) Validate() error
func (*GenesisCertificate) XXX_DiscardUnknown ¶
func (m *GenesisCertificate) XXX_DiscardUnknown()
func (*GenesisCertificate) XXX_Marshal ¶
func (m *GenesisCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisCertificate) XXX_Merge ¶
func (m *GenesisCertificate) XXX_Merge(src proto.Message)
func (*GenesisCertificate) XXX_Size ¶
func (m *GenesisCertificate) XXX_Size() int
func (*GenesisCertificate) XXX_Unmarshal ¶
func (m *GenesisCertificate) XXX_Unmarshal(b []byte) error
type GenesisCertificates ¶
type GenesisCertificates []GenesisCertificate
func (GenesisCertificates) Contains ¶
func (obj GenesisCertificates) Contains(cert GenesisCertificate) bool
type GenesisState ¶
type GenesisState struct {
Certificates GenesisCertificates `protobuf:"bytes,1,rep,name=certificates,proto3,castrepeated=GenesisCertificates" json:"certificates" yaml:"certificates"`
}
GenesisState defines the basic genesis state used by cert module
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/cert GenesisState given raw application genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCertificates ¶
func (m *GenesisState) GetCertificates() GenesisCertificates
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (m *GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateCertificate defines a method to create new certificate given proper inputs. CreateCertificate(ctx context.Context, in *MsgCreateCertificate, opts ...grpc.CallOption) (*MsgCreateCertificateResponse, error) // RevokeCertificate defines a method to revoke the certificate RevokeCertificate(ctx context.Context, in *MsgRevokeCertificate, opts ...grpc.CallOption) (*MsgRevokeCertificateResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateCertificate ¶
type MsgCreateCertificate struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert" yaml:"cert"` Pubkey []byte `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"` }
MsgCreateCertificate defines an SDK message for creating certificate
func (*MsgCreateCertificate) Descriptor ¶
func (*MsgCreateCertificate) Descriptor() ([]byte, []int)
func (*MsgCreateCertificate) GetCert ¶
func (m *MsgCreateCertificate) GetCert() []byte
func (*MsgCreateCertificate) GetOwner ¶
func (m *MsgCreateCertificate) GetOwner() string
func (*MsgCreateCertificate) GetPubkey ¶
func (m *MsgCreateCertificate) GetPubkey() []byte
func (MsgCreateCertificate) GetSignBytes ¶
func (m MsgCreateCertificate) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateCertificate) GetSigners ¶
func (m MsgCreateCertificate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCreateCertificate) Marshal ¶
func (m *MsgCreateCertificate) Marshal() (dAtA []byte, err error)
func (*MsgCreateCertificate) MarshalTo ¶
func (m *MsgCreateCertificate) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCertificate) MarshalToSizedBuffer ¶
func (m *MsgCreateCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCertificate) ProtoMessage ¶
func (*MsgCreateCertificate) ProtoMessage()
func (*MsgCreateCertificate) Reset ¶
func (m *MsgCreateCertificate) Reset()
func (MsgCreateCertificate) Route ¶
func (m MsgCreateCertificate) Route() string
====MsgCreateCertificate==== Route implements the sdk.Msg interface
func (*MsgCreateCertificate) Size ¶
func (m *MsgCreateCertificate) Size() (n int)
func (*MsgCreateCertificate) String ¶
func (m *MsgCreateCertificate) String() string
func (MsgCreateCertificate) Type ¶
func (m MsgCreateCertificate) Type() string
Type implements the sdk.Msg interface
func (*MsgCreateCertificate) Unmarshal ¶
func (m *MsgCreateCertificate) Unmarshal(dAtA []byte) error
func (MsgCreateCertificate) ValidateBasic ¶
func (m MsgCreateCertificate) ValidateBasic() error
ValidateBasic does basic validation
func (*MsgCreateCertificate) XXX_DiscardUnknown ¶
func (m *MsgCreateCertificate) XXX_DiscardUnknown()
func (*MsgCreateCertificate) XXX_Marshal ¶
func (m *MsgCreateCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCertificate) XXX_Merge ¶
func (m *MsgCreateCertificate) XXX_Merge(src proto.Message)
func (*MsgCreateCertificate) XXX_Size ¶
func (m *MsgCreateCertificate) XXX_Size() int
func (*MsgCreateCertificate) XXX_Unmarshal ¶
func (m *MsgCreateCertificate) XXX_Unmarshal(b []byte) error
type MsgCreateCertificateResponse ¶
type MsgCreateCertificateResponse struct { }
MsgCreateCertificateResponse defines the Msg/CreateCertificate response type.
func (*MsgCreateCertificateResponse) Descriptor ¶
func (*MsgCreateCertificateResponse) Descriptor() ([]byte, []int)
func (*MsgCreateCertificateResponse) Marshal ¶
func (m *MsgCreateCertificateResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateCertificateResponse) MarshalTo ¶
func (m *MsgCreateCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCertificateResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCertificateResponse) ProtoMessage ¶
func (*MsgCreateCertificateResponse) ProtoMessage()
func (*MsgCreateCertificateResponse) Reset ¶
func (m *MsgCreateCertificateResponse) Reset()
func (*MsgCreateCertificateResponse) Size ¶
func (m *MsgCreateCertificateResponse) Size() (n int)
func (*MsgCreateCertificateResponse) String ¶
func (m *MsgCreateCertificateResponse) String() string
func (*MsgCreateCertificateResponse) Unmarshal ¶
func (m *MsgCreateCertificateResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateCertificateResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateCertificateResponse) XXX_DiscardUnknown()
func (*MsgCreateCertificateResponse) XXX_Marshal ¶
func (m *MsgCreateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCertificateResponse) XXX_Merge ¶
func (m *MsgCreateCertificateResponse) XXX_Merge(src proto.Message)
func (*MsgCreateCertificateResponse) XXX_Size ¶
func (m *MsgCreateCertificateResponse) XXX_Size() int
func (*MsgCreateCertificateResponse) XXX_Unmarshal ¶
func (m *MsgCreateCertificateResponse) XXX_Unmarshal(b []byte) error
type MsgRevokeCertificate ¶
type MsgRevokeCertificate struct {
ID CertificateID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}
MsgRevokeCertificate defines an SDK message for revoking certificate
func (*MsgRevokeCertificate) Descriptor ¶
func (*MsgRevokeCertificate) Descriptor() ([]byte, []int)
func (*MsgRevokeCertificate) GetID ¶
func (m *MsgRevokeCertificate) GetID() CertificateID
func (MsgRevokeCertificate) GetSignBytes ¶
func (m MsgRevokeCertificate) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgRevokeCertificate) GetSigners ¶
func (m MsgRevokeCertificate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgRevokeCertificate) Marshal ¶
func (m *MsgRevokeCertificate) Marshal() (dAtA []byte, err error)
func (*MsgRevokeCertificate) MarshalTo ¶
func (m *MsgRevokeCertificate) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeCertificate) MarshalToSizedBuffer ¶
func (m *MsgRevokeCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeCertificate) ProtoMessage ¶
func (*MsgRevokeCertificate) ProtoMessage()
func (*MsgRevokeCertificate) Reset ¶
func (m *MsgRevokeCertificate) Reset()
func (MsgRevokeCertificate) Route ¶
func (m MsgRevokeCertificate) Route() string
====MsgRevokeCertificate==== Route implements the sdk.Msg interface
func (*MsgRevokeCertificate) Size ¶
func (m *MsgRevokeCertificate) Size() (n int)
func (*MsgRevokeCertificate) String ¶
func (m *MsgRevokeCertificate) String() string
func (MsgRevokeCertificate) Type ¶
func (m MsgRevokeCertificate) Type() string
Type implements the sdk.Msg interface
func (*MsgRevokeCertificate) Unmarshal ¶
func (m *MsgRevokeCertificate) Unmarshal(dAtA []byte) error
func (MsgRevokeCertificate) ValidateBasic ¶
func (m MsgRevokeCertificate) ValidateBasic() error
ValidateBasic does basic validation
func (*MsgRevokeCertificate) XXX_DiscardUnknown ¶
func (m *MsgRevokeCertificate) XXX_DiscardUnknown()
func (*MsgRevokeCertificate) XXX_Marshal ¶
func (m *MsgRevokeCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeCertificate) XXX_Merge ¶
func (m *MsgRevokeCertificate) XXX_Merge(src proto.Message)
func (*MsgRevokeCertificate) XXX_Size ¶
func (m *MsgRevokeCertificate) XXX_Size() int
func (*MsgRevokeCertificate) XXX_Unmarshal ¶
func (m *MsgRevokeCertificate) XXX_Unmarshal(b []byte) error
type MsgRevokeCertificateResponse ¶
type MsgRevokeCertificateResponse struct { }
MsgRevokeCertificateResponse defines the Msg/RevokeCertificate response type.
func (*MsgRevokeCertificateResponse) Descriptor ¶
func (*MsgRevokeCertificateResponse) Descriptor() ([]byte, []int)
func (*MsgRevokeCertificateResponse) Marshal ¶
func (m *MsgRevokeCertificateResponse) Marshal() (dAtA []byte, err error)
func (*MsgRevokeCertificateResponse) MarshalTo ¶
func (m *MsgRevokeCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeCertificateResponse) MarshalToSizedBuffer ¶
func (m *MsgRevokeCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeCertificateResponse) ProtoMessage ¶
func (*MsgRevokeCertificateResponse) ProtoMessage()
func (*MsgRevokeCertificateResponse) Reset ¶
func (m *MsgRevokeCertificateResponse) Reset()
func (*MsgRevokeCertificateResponse) Size ¶
func (m *MsgRevokeCertificateResponse) Size() (n int)
func (*MsgRevokeCertificateResponse) String ¶
func (m *MsgRevokeCertificateResponse) String() string
func (*MsgRevokeCertificateResponse) Unmarshal ¶
func (m *MsgRevokeCertificateResponse) Unmarshal(dAtA []byte) error
func (*MsgRevokeCertificateResponse) XXX_DiscardUnknown ¶
func (m *MsgRevokeCertificateResponse) XXX_DiscardUnknown()
func (*MsgRevokeCertificateResponse) XXX_Marshal ¶
func (m *MsgRevokeCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeCertificateResponse) XXX_Merge ¶
func (m *MsgRevokeCertificateResponse) XXX_Merge(src proto.Message)
func (*MsgRevokeCertificateResponse) XXX_Size ¶
func (m *MsgRevokeCertificateResponse) XXX_Size() int
func (*MsgRevokeCertificateResponse) XXX_Unmarshal ¶
func (m *MsgRevokeCertificateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateCertificate defines a method to create new certificate given proper inputs. CreateCertificate(context.Context, *MsgCreateCertificate) (*MsgCreateCertificateResponse, error) // RevokeCertificate defines a method to revoke the certificate RevokeCertificate(context.Context, *MsgRevokeCertificate) (*MsgRevokeCertificateResponse, error) }
MsgServer is the server API for Msg service.
type QueryCertificatesRequest ¶
type QueryCertificatesRequest struct { Filter CertificateFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDeploymentsRequest is request type for the Query/Deployments RPC method
func (*QueryCertificatesRequest) Descriptor ¶
func (*QueryCertificatesRequest) Descriptor() ([]byte, []int)
func (*QueryCertificatesRequest) GetFilter ¶
func (m *QueryCertificatesRequest) GetFilter() CertificateFilter
func (*QueryCertificatesRequest) GetPagination ¶
func (m *QueryCertificatesRequest) GetPagination() *query.PageRequest
func (*QueryCertificatesRequest) Marshal ¶
func (m *QueryCertificatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCertificatesRequest) MarshalTo ¶
func (m *QueryCertificatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificatesRequest) MarshalToSizedBuffer ¶
func (m *QueryCertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificatesRequest) ProtoMessage ¶
func (*QueryCertificatesRequest) ProtoMessage()
func (*QueryCertificatesRequest) Reset ¶
func (m *QueryCertificatesRequest) Reset()
func (*QueryCertificatesRequest) Size ¶
func (m *QueryCertificatesRequest) Size() (n int)
func (*QueryCertificatesRequest) String ¶
func (m *QueryCertificatesRequest) String() string
func (*QueryCertificatesRequest) Unmarshal ¶
func (m *QueryCertificatesRequest) Unmarshal(dAtA []byte) error
func (*QueryCertificatesRequest) XXX_DiscardUnknown ¶
func (m *QueryCertificatesRequest) XXX_DiscardUnknown()
func (*QueryCertificatesRequest) XXX_Marshal ¶
func (m *QueryCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificatesRequest) XXX_Merge ¶
func (m *QueryCertificatesRequest) XXX_Merge(src proto.Message)
func (*QueryCertificatesRequest) XXX_Size ¶
func (m *QueryCertificatesRequest) XXX_Size() int
func (*QueryCertificatesRequest) XXX_Unmarshal ¶
func (m *QueryCertificatesRequest) XXX_Unmarshal(b []byte) error
type QueryCertificatesResponse ¶
type QueryCertificatesResponse struct { Certificates CertificatesResponse `protobuf:"bytes,1,rep,name=certificates,proto3,castrepeated=CertificatesResponse" json:"certificates"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCertificatesResponse is response type for the Query/Certificates RPC method
func (*QueryCertificatesResponse) Descriptor ¶
func (*QueryCertificatesResponse) Descriptor() ([]byte, []int)
func (*QueryCertificatesResponse) GetCertificates ¶
func (m *QueryCertificatesResponse) GetCertificates() CertificatesResponse
func (*QueryCertificatesResponse) GetPagination ¶
func (m *QueryCertificatesResponse) GetPagination() *query.PageResponse
func (*QueryCertificatesResponse) Marshal ¶
func (m *QueryCertificatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCertificatesResponse) MarshalTo ¶
func (m *QueryCertificatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificatesResponse) MarshalToSizedBuffer ¶
func (m *QueryCertificatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificatesResponse) ProtoMessage ¶
func (*QueryCertificatesResponse) ProtoMessage()
func (*QueryCertificatesResponse) Reset ¶
func (m *QueryCertificatesResponse) Reset()
func (*QueryCertificatesResponse) Size ¶
func (m *QueryCertificatesResponse) Size() (n int)
func (*QueryCertificatesResponse) String ¶
func (m *QueryCertificatesResponse) String() string
func (*QueryCertificatesResponse) Unmarshal ¶
func (m *QueryCertificatesResponse) Unmarshal(dAtA []byte) error
func (*QueryCertificatesResponse) XXX_DiscardUnknown ¶
func (m *QueryCertificatesResponse) XXX_DiscardUnknown()
func (*QueryCertificatesResponse) XXX_Marshal ¶
func (m *QueryCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificatesResponse) XXX_Merge ¶
func (m *QueryCertificatesResponse) XXX_Merge(src proto.Message)
func (*QueryCertificatesResponse) XXX_Size ¶
func (m *QueryCertificatesResponse) XXX_Size() int
func (*QueryCertificatesResponse) XXX_Unmarshal ¶
func (m *QueryCertificatesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Certificates queries certificates Certificates(ctx context.Context, in *QueryCertificatesRequest, opts ...grpc.CallOption) (*QueryCertificatesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { // Certificates queries certificates Certificates(context.Context, *QueryCertificatesRequest) (*QueryCertificatesResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateCertificate ¶
func (*UnimplementedMsgServer) CreateCertificate(ctx context.Context, req *MsgCreateCertificate) (*MsgCreateCertificateResponse, error)
func (*UnimplementedMsgServer) RevokeCertificate ¶
func (*UnimplementedMsgServer) RevokeCertificate(ctx context.Context, req *MsgRevokeCertificate) (*MsgRevokeCertificateResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Certificates ¶
func (*UnimplementedQueryServer) Certificates(ctx context.Context, req *QueryCertificatesRequest) (*QueryCertificatesResponse, error)