Documentation
¶
Overview ¶
Package audit provides support for interacting with the HSDP Audit service
Index ¶
Constants ¶
View Source
const (
APIVersion = "2"
)
Variables ¶
View Source
var ( ErrBaseURLCannotBeEmpty = errors.New("base URL cannot be empty") ErrEmptyResult = errors.New("empty result") ErrBadRequest = errors.New("bad request") )
Errors
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// User agent used when communicating with the HSDP IAM API.
UserAgent string
// contains filtered or unexported fields
}
Client holds state of a HSDP Audit client
func NewClient ¶
NewClient returns a new HSDP Audit API client. Configured console and IAM clients must be provided as the underlying API requires tokens from respective services
func (*Client) CreateAuditEvent ¶
func (c *Client) CreateAuditEvent(event *dstu2pb.AuditEvent) (*stu3pb.ContainedResource, *Response, error)
type Config ¶
type Config struct {
Region string
Environment string
// AuditBaseURL is provided as part of Auditing onboarding
AuditBaseURL string
SharedKey string
// SharedSecret is the IAM API signing secret
TimeZone string
DebugLog io.Writer
}
Config contains the configuration of a client
type OptionFunc ¶
OptionFunc is the function signature function for options
Directories
¶
| Path | Synopsis |
|---|---|
|
helper
|
|
|
fhir/dstu2
Package dstu2 contains helper methods to construct AuditEvent resources
|
Package dstu2 contains helper methods to construct AuditEvent resources |
Click to show internal directories.
Click to hide internal directories.