mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-30 18:48:39 -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
|
@ -13,11 +13,15 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// DefaultResourceGroupName to find Constellation images in.
|
||||
DefaultResourceGroupName = "CONSTELLATION-IMAGES"
|
||||
DefaultGalleryName = "Constellation_CVM"
|
||||
DefaultImageDefinition = "constellation"
|
||||
// DefaultGalleryName to find Constellation images in.
|
||||
DefaultGalleryName = "Constellation_CVM"
|
||||
// DefaultImageDefinition to find Constellation images in.
|
||||
DefaultImageDefinition = "constellation"
|
||||
)
|
||||
|
||||
// Options for Azure Client to download image references.
|
||||
type Options struct {
|
||||
SubscriptionID string
|
||||
ResourceGroupName string
|
||||
|
@ -25,6 +29,7 @@ type Options struct {
|
|||
ImageDefinition string
|
||||
}
|
||||
|
||||
// DefaultOptions creates an Options object with good defaults.
|
||||
func DefaultOptions() Options {
|
||||
return Options{
|
||||
SubscriptionID: "",
|
||||
|
@ -34,6 +39,7 @@ func DefaultOptions() Options {
|
|||
}
|
||||
}
|
||||
|
||||
// SetSubscription sets subscription from string. It expects a UUID conform value.
|
||||
func (o *Options) SetSubscription(sub string) error {
|
||||
if _, err := uuid.Parse(sub); err != nil {
|
||||
return fmt.Errorf("unable to set subscription: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue