Documentation ¶
Overview ¶
Package audit provides a client for the Doppler API's audit endpoints.
API-Docs: https://docs.doppler.com/reference/audit-api-reference
Example:
// Fetch audit logs for the current workplace logs, _, err := audit.WorkplaceGet(context.Background(), &doppler.AuditWorkplaceGetOptions{}) if err != nil { log.Fatal(err) } fmt.Println(logs)
Index ¶
- func WorkplaceGet(ctx context.Context, opts *doppler.AuditWorkplaceGetOptions) (*doppler.AuditWorkplace, doppler.APIResponse, error)
- func WorkplaceUserGet(ctx context.Context, opts *doppler.AuditWorkplaceUserGetOptions) (*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
- func WorkplaceUserList(ctx context.Context, opts *doppler.AuditWorkplaceUserListOptions) ([]*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
- type Client
- func (c Client) WorkplaceGet(ctx context.Context, opts *doppler.AuditWorkplaceGetOptions) (*doppler.AuditWorkplace, doppler.APIResponse, error)
- func (c Client) WorkplaceUserGet(ctx context.Context, opts *doppler.AuditWorkplaceUserGetOptions) (*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
- func (c Client) WorkplaceUserList(ctx context.Context, opts *doppler.AuditWorkplaceUserListOptions) ([]*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkplaceGet ¶
func WorkplaceGet(ctx context.Context, opts *doppler.AuditWorkplaceGetOptions) (*doppler.AuditWorkplace, doppler.APIResponse, error)
WorkplaceGet returns an audit log for a workplace using the default client.
func WorkplaceUserGet ¶
func WorkplaceUserGet(ctx context.Context, opts *doppler.AuditWorkplaceUserGetOptions) (*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
WorkplaceUserGet returns an audit log for a workplace user using the default client.
func WorkplaceUserList ¶
func WorkplaceUserList(ctx context.Context, opts *doppler.AuditWorkplaceUserListOptions) ([]*doppler.AuditWorkplaceUser, doppler.APIResponse, error)
WorkplaceUserList returns a list of audit logs for workplace users using the default client.
Types ¶
type Client ¶
type Client struct { Backend doppler.Backend Key string }
Client is the client used to invoke /v3/configs/config/secrets APIs.
func Default ¶
func Default() *Client
Default returns a new client based on the SDK's default backend and API key.
func (Client) WorkplaceGet ¶
func (c Client) WorkplaceGet(ctx context.Context, opts *doppler.AuditWorkplaceGetOptions) (*doppler.AuditWorkplace, doppler.APIResponse, error)
WorkplaceGet returns an audit log for a workplace.
Click to show internal directories.
Click to hide internal directories.