Documentation
¶
Overview ¶
Package configlog provides a client for the Doppler API's config logs endpoints.
API-Docs: https://docs.doppler.com/reference/config-log-list
Example:
// Fetch config logs
configLogs, _, err := configlog.List(ctx, nil)
if err != nil {
log.Fatal(err)
}
// Print config logs
for _, log := range configLogs {
fmt.Printf("%+v\n", log)
}
Index ¶
- func Get(ctx context.Context, opts *doppler.ConfigLogGetOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
- func List(ctx context.Context, opts *doppler.ConfigLogListOptions) ([]*doppler.ConfigLog, doppler.APIResponse, error)
- func Rollback(ctx context.Context, opts *doppler.ConfigLogRollbackOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
- type Client
- func (c Client) Get(ctx context.Context, opts *doppler.ConfigLogGetOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
- func (c Client) List(ctx context.Context, opts *doppler.ConfigLogListOptions) ([]*doppler.ConfigLog, doppler.APIResponse, error)
- func (c Client) Rollback(ctx context.Context, opts *doppler.ConfigLogRollbackOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx context.Context, opts *doppler.ConfigLogGetOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
Get returns a config log and its respective info using the default client.
Types ¶
type Client ¶
Client is the client used to invoke /v3/config/logs APIs.
func Default ¶
func Default() *Client
Default returns a new client based on the SDK's default backend and API key.
func (Client) Get ¶
func (c Client) Get(ctx context.Context, opts *doppler.ConfigLogGetOptions) (*doppler.ConfigLog, doppler.APIResponse, error)
Get returns a config log and its respective info.
Click to show internal directories.
Click to hide internal directories.