container

package
v0.10.6-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerClient

type ContainerClient struct {
	storage.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewContainerClient

func NewContainerClient(cloudFQDN string, authorizer auth.Authorizer) (*ContainerClient, error)

NewClient method returns new client

func (*ContainerClient) CreateOrUpdate

func (c *ContainerClient) CreateOrUpdate(ctx context.Context, group, name string, storage *storage.Container) (*storage.Container, error)

CreateOrUpdate methods invokes create or update on the client

func (*ContainerClient) Delete

func (c *ContainerClient) Delete(ctx context.Context, group, name string) error

Delete methods invokes delete of the storage resource

func (*ContainerClient) Get

func (c *ContainerClient) Get(ctx context.Context, group, name string) (*[]storage.Container, error)

Get methods invokes the client Get method

type Service

type Service interface {
	Get(context.Context, string, string) (*[]storage.Container, error)
	CreateOrUpdate(context.Context, string, string, *storage.Container) (*storage.Container, error)
	Delete(context.Context, string, string) error
}

Service interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL