Documentation
¶
Index ¶
- func MarshalBinary(v interface{}) ([]byte, error)
- func UnmarshalBinary(bs []byte, v interface{}) error
- type BinaryMarshaller
- type BinaryUnmarshaller
- type Domain
- func (*Domain) Descriptor() ([]byte, []int)
- func (m *Domain) GetCertificatePEM() []byte
- func (m *Domain) GetName() string
- func (m *Domain) GetPrivateKeyPEM() []byte
- func (m *Domain) GetUserID() []byte
- func (*Domain) ProtoMessage()
- func (m *Domain) Reset()
- func (m *Domain) String() string
- func (m *Domain) XXX_DiscardUnknown()
- func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Domain) XXX_Merge(src proto.Message)
- func (m *Domain) XXX_Size() int
- func (m *Domain) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAccountKey() *User_AccountKey
- func (m *User) GetAccountURL() string
- func (m *User) GetId() []byte
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type User_AccountKey
- func (*User_AccountKey) Descriptor() ([]byte, []int)
- func (m *User_AccountKey) GetKeyBytes() []byte
- func (m *User_AccountKey) GetKeyType() uint32
- func (*User_AccountKey) ProtoMessage()
- func (m *User_AccountKey) Reset()
- func (m *User_AccountKey) String() string
- func (m *User_AccountKey) XXX_DiscardUnknown()
- func (m *User_AccountKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User_AccountKey) XXX_Merge(src proto.Message)
- func (m *User_AccountKey) XXX_Size() int
- func (m *User_AccountKey) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalBinary ¶
MarshalBinary marshals the passed domain object into a byte slice suitable for storing it into the acmeproxy database.
func UnmarshalBinary ¶
UnmarshalBinary unmarshals the passed byte slice into v which should be a pointer to a passed domain object.
Types ¶
type BinaryMarshaller ¶
type BinaryMarshaller struct { V interface{} // contains filtered or unexported fields }
BinaryMarshaller wraps a value V and provides a binary representation of value. Once the BinaryMarshaller was used to create a binary representation of V it must not be reused.
func (*BinaryMarshaller) MarshalBinary ¶
func (m *BinaryMarshaller) MarshalBinary() ([]byte, error)
MarshalBinary creates a binary representation of the object wrapped by the BinaryMarshaller.
type BinaryUnmarshaller ¶
type BinaryUnmarshaller struct { V interface{} // contains filtered or unexported fields }
BinaryUnmarshaller wraps a target value V and reads its contents from a binary representation.
Once the Umarshaller has been used it must not be used again.
func (*BinaryUnmarshaller) UnmarshalBinary ¶
func (u *BinaryUnmarshaller) UnmarshalBinary(bs []byte) error
UnmarshalBinary creates a domain object from the passed bytes.
type Domain ¶
type Domain struct { UserID []byte `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CertificatePEM []byte `protobuf:"bytes,3,opt,name=certificatePEM,proto3" json:"certificatePEM,omitempty"` PrivateKeyPEM []byte `protobuf:"bytes,4,opt,name=privateKeyPEM,proto3" json:"privateKeyPEM,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Domain) Descriptor ¶
func (*Domain) GetCertificatePEM ¶
func (*Domain) GetPrivateKeyPEM ¶
func (*Domain) ProtoMessage ¶
func (*Domain) ProtoMessage()
func (*Domain) XXX_DiscardUnknown ¶
func (m *Domain) XXX_DiscardUnknown()
func (*Domain) XXX_Marshal ¶
func (*Domain) XXX_Unmarshal ¶
type User ¶
type User struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AccountURL string `protobuf:"bytes,2,opt,name=accountURL,proto3" json:"accountURL,omitempty"` AccountKey *User_AccountKey `protobuf:"bytes,3,opt,name=accountKey,proto3" json:"accountKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetAccountKey ¶
func (m *User) GetAccountKey() *User_AccountKey
func (*User) GetAccountURL ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type User_AccountKey ¶
type User_AccountKey struct { KeyType uint32 `protobuf:"varint,1,opt,name=keyType,proto3" json:"keyType,omitempty"` KeyBytes []byte `protobuf:"bytes,2,opt,name=keyBytes,proto3" json:"keyBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User_AccountKey) Descriptor ¶
func (*User_AccountKey) Descriptor() ([]byte, []int)
func (*User_AccountKey) GetKeyBytes ¶
func (m *User_AccountKey) GetKeyBytes() []byte
func (*User_AccountKey) GetKeyType ¶
func (m *User_AccountKey) GetKeyType() uint32
func (*User_AccountKey) ProtoMessage ¶
func (*User_AccountKey) ProtoMessage()
func (*User_AccountKey) Reset ¶
func (m *User_AccountKey) Reset()
func (*User_AccountKey) String ¶
func (m *User_AccountKey) String() string
func (*User_AccountKey) XXX_DiscardUnknown ¶
func (m *User_AccountKey) XXX_DiscardUnknown()
func (*User_AccountKey) XXX_Marshal ¶
func (m *User_AccountKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*User_AccountKey) XXX_Merge ¶
func (m *User_AccountKey) XXX_Merge(src proto.Message)
func (*User_AccountKey) XXX_Size ¶
func (m *User_AccountKey) XXX_Size() int
func (*User_AccountKey) XXX_Unmarshal ¶
func (m *User_AccountKey) XXX_Unmarshal(b []byte) error