updateblob

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateContainerName = "update"
	UpdateBlobName      = "update"
)

here follow well known container and blob names

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobService

type BlobService interface {
	Read() (*UpdateBlob, error)
	Write(*UpdateBlob) error
}

func NewBlobService

func NewBlobService(bsc storage.BlobStorageClient) (BlobService, error)

type InstanceHashes

type InstanceHashes map[string][]byte

func (InstanceHashes) MarshalJSON

func (ihm InstanceHashes) MarshalJSON() ([]byte, error)

func (*InstanceHashes) UnmarshalJSON

func (ihm *InstanceHashes) UnmarshalJSON(data []byte) error

type ScalesetHashes

type ScalesetHashes map[string][]byte

func (ScalesetHashes) MarshalJSON

func (shm ScalesetHashes) MarshalJSON() ([]byte, error)

func (*ScalesetHashes) UnmarshalJSON

func (shm *ScalesetHashes) UnmarshalJSON(data []byte) error

type UpdateBlob

type UpdateBlob struct {
	// ScalesetHashes stores the config hash for each worker scaleset
	ScalesetHashes ScalesetHashes `json:"scalesetHashes,omitempty"`
	// InstanceHases stores the config hash for each master instance
	InstanceHashes InstanceHashes `json:"instanceHashes,omitempty"`
}

func NewUpdateBlob

func NewUpdateBlob() *UpdateBlob

Jump to

Keyboard shortcuts

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