Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePaste ¶
func (c *Client) CreatePaste( ctx context.Context, data []byte, opts CreatePasteOptions, ) (*CreatePasteResult, error)
func (*Client) ShowPaste ¶
func (c *Client) ShowPaste( ctx context.Context, urlWithMasterKey url.URL, opts ShowPasteOptions, ) (*ShowPasteResult, error)
type CompressionAlgorithm ¶
type CompressionAlgorithm uint8
const ( CompressionAlgorithmUnknow CompressionAlgorithm = iota CompressionAlgorithmNone CompressionAlgorithmGZip )
func (CompressionAlgorithm) MarshalJSON ¶
func (ca CompressionAlgorithm) MarshalJSON() ([]byte, error)
func (CompressionAlgorithm) String ¶
func (ca CompressionAlgorithm) String() string
func (*CompressionAlgorithm) UnmarshalJSON ¶
func (ca *CompressionAlgorithm) UnmarshalJSON(data []byte) error
type CreatePasteOptions ¶
type CreatePasteResult ¶
type EncryptionAlgorithm ¶
type EncryptionAlgorithm uint8
const ( EncryptionAlgorithmUnknow EncryptionAlgorithm = iota EncryptionAlgorithmAES )
func (EncryptionAlgorithm) MarshalJSON ¶
func (ea EncryptionAlgorithm) MarshalJSON() ([]byte, error)
func (EncryptionAlgorithm) String ¶
func (ea EncryptionAlgorithm) String() string
func (*EncryptionAlgorithm) UnmarshalJSON ¶
func (ea *EncryptionAlgorithm) UnmarshalJSON(data []byte) error
type EncryptionMode ¶
type EncryptionMode uint8
const ( EncryptionModeUnknow EncryptionMode = iota EncryptionModeGCM )
func (EncryptionMode) MarshalJSON ¶
func (em EncryptionMode) MarshalJSON() ([]byte, error)
func (EncryptionMode) String ¶
func (em EncryptionMode) String() string
func (*EncryptionMode) UnmarshalJSON ¶
func (em *EncryptionMode) UnmarshalJSON(data []byte) error
type Option ¶
type Option func(c *Client)
func WithBasicAuth ¶
func WithCustomHeaderField ¶
func WithUserAgent ¶
type ShowPasteOptions ¶
type ShowPasteResult ¶
type Spec ¶
type Spec struct { IV []byte Salt []byte Iterations int KeySize int TagSize int Algorithm EncryptionAlgorithm Mode EncryptionMode Compression CompressionAlgorithm }
func (Spec) MarshalJSON ¶
func (*Spec) UnmarshalJSON ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.