audit

package
v0.0.0-...-b469183 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 0

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

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.

func (Client) WorkplaceUserGet

func (c Client) WorkplaceUserGet(ctx context.Context, opts *doppler.AuditWorkplaceUserGetOptions) (*doppler.AuditWorkplaceUser, doppler.APIResponse, error)

WorkplaceUserGet returns an audit log for a workplace user.

func (Client) WorkplaceUserList

func (c Client) WorkplaceUserList(ctx context.Context, opts *doppler.AuditWorkplaceUserListOptions) ([]*doppler.AuditWorkplaceUser, doppler.APIResponse, error)

WorkplaceUserList returns a list of audit logs for workplace users.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL