mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-01 11:36:10 -04:00
Document exported funcs,types,interfaces and enable check. (#475)
* Include EXC0014 and fix issues. * Include EXC0012 and fix issues. Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Otto Bittner <cobittner@posteo.net>
This commit is contained in:
parent
c9873f2bfb
commit
0d12e37c96
74 changed files with 337 additions and 78 deletions
|
@ -17,12 +17,14 @@ import (
|
|||
"github.com/edgelesssys/constellation/v2/internal/logger"
|
||||
)
|
||||
|
||||
// Client for Azure Gallery API.
|
||||
type Client struct {
|
||||
log *logger.Logger
|
||||
opts Options
|
||||
versionClient *armcompute.GalleryImageVersionsClient
|
||||
}
|
||||
|
||||
// NewClient creates a new Client.
|
||||
func NewClient(log *logger.Logger, opts Options) *Client {
|
||||
log = log.Named("azure-client")
|
||||
|
||||
|
@ -43,6 +45,7 @@ func NewClient(log *logger.Logger, opts Options) *Client {
|
|||
}
|
||||
}
|
||||
|
||||
// FetchImages for the given client options.
|
||||
func (c *Client) FetchImages(ctx context.Context) (map[string]string, error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, time.Second*5)
|
||||
defer cancel()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue