package core
import "github.com/cloudflare/redoctober/core"
Package core handles the main operations of the Red October server.
Copyright (c) 2013 CloudFlare, Inc.
Index ¶
- func Create(jsonIn []byte) ([]byte, error)
- func CreateUser(jsonIn []byte) ([]byte, error)
- func Decrypt(jsonIn []byte) ([]byte, error)
- func Delegate(jsonIn []byte) ([]byte, error)
- func Encrypt(jsonIn []byte) ([]byte, error)
- func Export(jsonIn []byte) ([]byte, error)
- func Init(path string, config *config.Config) error
- func Modify(jsonIn []byte) ([]byte, error)
- func Order(jsonIn []byte) (out []byte, err error)
- func OrderCancel(jsonIn []byte) (out []byte, err error)
- func OrderInfo(jsonIn []byte) (out []byte, err error)
- func OrdersOutstanding(jsonIn []byte) (out []byte, err error)
- func Owners(jsonIn []byte) ([]byte, error)
- func Password(jsonIn []byte) ([]byte, error)
- func Purge(jsonIn []byte) ([]byte, error)
- func ReEncrypt(jsonIn []byte) ([]byte, error)
- func ResetPersisted(jsonIn []byte) (out []byte, err error)
- func Restore(jsonIn []byte) (out []byte, err error)
- func SSHSignWith(jsonIn []byte) ([]byte, error)
- func Status(jsonIn []byte) (out []byte, err error)
- func Summary(jsonIn []byte) ([]byte, error)
- type ActiveUser
- type CreateRequest
- type CreateUserRequest
- type DecryptRequest
- type DecryptWithDelegates
- type DelegateRequest
- type EncryptRequest
- type ExportRequest
- type ModifyRequest
- type OrderCancelRequest
- type OrderInfoRequest
- type OrderOutstandingRequest
- type OrderRequest
- type OwnersData
- type OwnersRequest
- type PasswordRequest
- type PurgeRequest
- type ReEncryptRequest
- type ResponseData
- type SSHSignWithRequest
- type SSHSignatureWithDelegates
- type StatusData
- type StatusRequest
- type SummaryData
- type SummaryRequest
Functions ¶
func Create ¶
Create processes a create request.
func CreateUser ¶
CreateUser processes a create-user request.
func Decrypt ¶
Decrypt processes a decrypt request.
func Delegate ¶
Delegate processes a delegation request.
func Encrypt ¶
Encrypt processes an encrypt request.
func Export ¶
Export returns a backed up vault.
func Init ¶
Init reads the records from disk from a given path
func Modify ¶
Modify processes a modify request.
func Order ¶
Order will request delegations from other users.
func OrderCancel ¶
OrderCancel will cancel an order given an order num
func OrderInfo ¶
OrderInfo will return a list of currently outstanding order numbers.
func OrdersOutstanding ¶
OrdersOutstanding will return a list of currently outstanding orders.
func Owners ¶
Owners processes a owners request.
func Password ¶
Password processes a password change request.
func Purge ¶
Purge processes a delegation purge request.
func ReEncrypt ¶
ReEncrypt processes an Re-encrypt request.
func ResetPersisted ¶
ResetPersisted clears the persisted user data from the server. This request requires an admin.
func Restore ¶
Restore attempts a restoration of the persistence store.
func SSHSignWith ¶
SSHSignWith signs a message with an SSH key
func Status ¶
Status returns the current delegation persistence state. In the future, this may return more data.
func Summary ¶
Summary processes a summary request.
Types ¶
type ActiveUser ¶
type CreateRequest ¶
type CreateUserRequest ¶
type DecryptRequest ¶
type DecryptWithDelegates ¶
type DelegateRequest ¶
type DelegateRequest struct { Name string Password string Uses int Time string Slot string Users []string Labels []string }
type EncryptRequest ¶
type EncryptRequest struct { Name string Password string Minimum int Owners []string LeftOwners []string RightOwners []string Predicate string Data []byte Labels []string Usages []string }
type ExportRequest ¶
type ModifyRequest ¶
type OrderCancelRequest ¶
type OrderInfoRequest ¶
type OrderOutstandingRequest ¶
type OrderRequest ¶
type OrderRequest struct { Name string Password string Duration string Uses int Users []string EncryptedData []byte Labels []string }
type OwnersData ¶
type OwnersRequest ¶
type OwnersRequest struct { Data []byte }
type PasswordRequest ¶
type PurgeRequest ¶
type ReEncryptRequest ¶
type ReEncryptRequest EncryptRequest
type ResponseData ¶
type SSHSignWithRequest ¶
type SSHSignatureWithDelegates ¶
type SSHSignatureWithDelegates struct { SignatureFormat string Signature []byte Secure bool Delegates []string }
type StatusData ¶
type StatusData struct { Status string }
type StatusRequest ¶
type SummaryData ¶
type SummaryData struct { Status string State string Live map[string]ActiveUser All map[string]passvault.Summary }
type SummaryRequest ¶
Source Files ¶
- Version
- v0.0.0-20241112165158-ce2ad370627b (latest)
- Published
- Nov 12, 2024
- Platform
- windows/amd64
- Imports
- 18 packages
- Last checked
- 22 hours ago –
Tools for package owners.