Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedAPIClient ¶
type CachedAPIClient struct {
// contains filtered or unexported fields
}
func NewCachedAPIClient ¶
func NewCachedAPIClient(api *client.Client, expiration time.Duration) *CachedAPIClient
NewCachedAPIClient creates an api client that caches the results for indicated expiration.
func (*CachedAPIClient) GetAssettypes ¶
func (s *CachedAPIClient) GetAssettypes() (*client.AssettypeCollection, error)
GetAssettypes retrieves the list of assettypes with the associated checktypes.
func (*CachedAPIClient) GetChecktype ¶
func (s *CachedAPIClient) GetChecktype(name string) (*client.Checktype, error)
GetChecktype retrieves the checktype with the indicated name.
Click to show internal directories.
Click to hide internal directories.