acr

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "2018-03-28"

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureAccountConfig

type AzureAccountConfig struct {
	AccessToken  string `json:"accessToken"`
	Subscription string `json:"subscription"`
}

type AzureBlobStorage

type AzureBlobStorage struct {
	UploadURL string
	Buffer    *bytes.Buffer
}

func NewBlobStorage

func NewBlobStorage(url string) AzureBlobStorage

func (AzureBlobStorage) UploadFileToBlob

func (s AzureBlobStorage) UploadFileToBlob() error

Maximum supported file size is currently 256Mb as stated here https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob#remarks

type BearerAuthorizer

type BearerAuthorizer struct {
	// contains filtered or unexported fields
}

simple autorest.Authorizer which adds the bearer token as a header to the autorest requests

func (BearerAuthorizer) WithAuthorization

func (b BearerAuthorizer) WithAuthorization() autorest.PrepareDecorator

type Builder

type Builder struct {
	*latest.AzureContainerBuild
}

func NewBuilder

func NewBuilder(cfg *latest.AzureContainerBuild) *Builder

Creates a new builder with the Azure Container config

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, out io.Writer, tagger tag.Tagger, artifacts []*latest.Artifact) ([]build.Artifact, error)

func (*Builder) Labels

func (b *Builder) Labels() map[string]string

Labels specific to Azure Container Build

func (Builder) NewRegistriesClient

func (b Builder) NewRegistriesClient() (*cr.RegistriesClient, error)

creates a new RegistriesClient with either the credentials from the skaffold.yaml or the bearer token provided by the Azure CLI

Jump to

Keyboard shortcuts

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