Versions in this module Expand all Collapse all v1 v1.1.11 Mar 9, 2023 v1.1.10 Feb 14, 2023 v1.1.9 Feb 14, 2023 v1.1.8 Aug 6, 2021 v1.1.7 Mar 22, 2021 Changes in this version + func Hash(salter *salt.Salt, raw interface{}, nonHMACDataKeys []string) error + func HashString(salter *salt.Salt, data string) string + func HashStructure(s interface{}, cb HashCallback, ignoredKeys []string) (interface{}, error) + type AuditAuth struct + Accessor string + ClientToken string + DisplayName string + EntityID string + ExternalNamespacePolicies map[string][]string + IdentityPolicies []string + Metadata map[string]string + NumUses int + Policies []string + RemainingUses int + TokenPolicies []string + TokenType string + type AuditFormatWriter interface + Salt func(context.Context) (*salt.Salt, error) + WriteRequest func(io.Writer, *AuditRequestEntry) error + WriteResponse func(io.Writer, *AuditResponseEntry) error + type AuditFormatter struct + func (f *AuditFormatter) FormatRequest(ctx context.Context, w io.Writer, config FormatterConfig, in *LogInput) error + func (f *AuditFormatter) FormatResponse(ctx context.Context, w io.Writer, config FormatterConfig, in *LogInput) error + type AuditNamespace struct + ID string + Path string + type AuditRequest struct + ClientToken string + ClientTokenAccessor string + Data map[string]interface{} + Headers map[string][]string + ID string + Namespace AuditNamespace + Operation logical.Operation + Path string + PolicyOverride bool + RemoteAddr string + ReplicationCluster string + WrapTTL int + type AuditRequestEntry struct + Auth AuditAuth + Error string + Request AuditRequest + Time string + Type string + type AuditResponse struct + Auth *AuditAuth + Data map[string]interface{} + Headers map[string][]string + Redirect string + Secret *AuditSecret + Warnings []string + WrapInfo *AuditResponseWrapInfo + type AuditResponseEntry struct + Auth AuditAuth + Error string + Request AuditRequest + Response AuditResponse + Time string + Type string + type AuditResponseWrapInfo struct + Accessor string + CreationPath string + CreationTime string + TTL int + Token string + WrappedAccessor string + type AuditSecret struct + LeaseID string + type Backend interface + GetHash func(context.Context, string) (string, error) + Invalidate func(context.Context) + LogRequest func(context.Context, *LogInput) error + LogResponse func(context.Context, *LogInput) error + Reload func(context.Context) error + type BackendConfig struct + Config map[string]string + SaltConfig *salt.Config + SaltView logical.Storage + type Factory func(context.Context, *BackendConfig) (Backend, error) + type Formatter interface + FormatRequest func(context.Context, io.Writer, FormatterConfig, *LogInput) error + FormatResponse func(context.Context, io.Writer, FormatterConfig, *LogInput) error + type FormatterConfig struct + HMACAccessor bool + OmitTime bool + Raw bool + type HashCallback func(string) string + type JSONFormatWriter struct + Prefix string + SaltFunc func(context.Context) (*salt.Salt, error) + func (f *JSONFormatWriter) Salt(ctx context.Context) (*salt.Salt, error) + func (f *JSONFormatWriter) WriteRequest(w io.Writer, req *AuditRequestEntry) error + func (f *JSONFormatWriter) WriteResponse(w io.Writer, resp *AuditResponseEntry) error + type JSONxFormatWriter struct + Prefix string + SaltFunc func(context.Context) (*salt.Salt, error) + func (f *JSONxFormatWriter) Salt(ctx context.Context) (*salt.Salt, error) + func (f *JSONxFormatWriter) WriteRequest(w io.Writer, req *AuditRequestEntry) error + func (f *JSONxFormatWriter) WriteResponse(w io.Writer, resp *AuditResponseEntry) error + type LogInput struct + Auth *logical.Auth + NonHMACReqDataKeys []string + NonHMACRespDataKeys []string + OuterErr error + Request *logical.Request + Response *logical.Response