Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.
Index ¶
- type GalleryImageClient
- func (c *GalleryImageClient) CreateOrUpdate(ctx context.Context, location, imagePath, name string, ...) (*compute.GalleryImage, error)
- func (c *GalleryImageClient) Delete(ctx context.Context, location, name string) error
- func (c *GalleryImageClient) Get(ctx context.Context, location, name string) (*[]compute.GalleryImage, error)
- func (c *GalleryImageClient) Precheck(ctx context.Context, location, imagePath string, ...) (bool, error)
- func (c *GalleryImageClient) UploadImageFromHttp(ctx context.Context, location, name string, galImage *compute.GalleryImage, ...) (*compute.GalleryImage, error)
- func (c *GalleryImageClient) UploadImageFromLocal(ctx context.Context, location, imagePath, name string, ...) (*compute.GalleryImage, error)
- func (c *GalleryImageClient) UploadImageFromSFS(ctx context.Context, location, name string, galImage *compute.GalleryImage, ...) (*compute.GalleryImage, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GalleryImageClient ¶
type GalleryImageClient struct { compute.BaseClient // contains filtered or unexported fields }
Client structure
func NewGalleryImageClient ¶
func NewGalleryImageClient(cloudFQDN string, authorizer auth.Authorizer) (*GalleryImageClient, error)
NewClient method returns new client
func (*GalleryImageClient) CreateOrUpdate ¶
func (c *GalleryImageClient) CreateOrUpdate(ctx context.Context, location, imagePath, name string, compute *compute.GalleryImage) (*compute.GalleryImage, error)
CreateOrUpdate methods invokes create or update on the client
func (*GalleryImageClient) Delete ¶
func (c *GalleryImageClient) Delete(ctx context.Context, location, name string) error
Delete methods invokes delete of the compute resource
func (*GalleryImageClient) Get ¶
func (c *GalleryImageClient) Get(ctx context.Context, location, name string) (*[]compute.GalleryImage, error)
Get methods invokes the client Get method
func (*GalleryImageClient) Precheck ¶ added in v0.19.3
func (c *GalleryImageClient) Precheck(ctx context.Context, location, imagePath string, galleryImages []*compute.GalleryImage) (bool, error)
Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.
func (*GalleryImageClient) UploadImageFromHttp ¶ added in v0.10.20
func (c *GalleryImageClient) UploadImageFromHttp(ctx context.Context, location, name string, galImage *compute.GalleryImage, azHttpImg *compute.AzureGalleryImageProperties) (*compute.GalleryImage, error)
func (*GalleryImageClient) UploadImageFromLocal ¶ added in v0.10.12
func (c *GalleryImageClient) UploadImageFromLocal(ctx context.Context, location, imagePath, name string, compute *compute.GalleryImage) (*compute.GalleryImage, error)
UploadImageFromLocal methods invokes UploadImageFromLocal on the client
func (*GalleryImageClient) UploadImageFromSFS ¶ added in v0.10.12
func (c *GalleryImageClient) UploadImageFromSFS(ctx context.Context, location, name string, galImage *compute.GalleryImage, sfsImg *compute.SFSImageProperties) (*compute.GalleryImage, error)
UploadImageFromSFS methods invokes UploadImageFromSFS on the client
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]compute.GalleryImage, error) CreateOrUpdate(context.Context, string, string, string, *compute.GalleryImage) (*compute.GalleryImage, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, location, imagePath string, galleryImages []*compute.GalleryImage) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.