updateblob

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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

type HostnameHashes

type HostnameHashes map[string][]byte

func (HostnameHashes) MarshalJSON

func (hhm HostnameHashes) MarshalJSON() ([]byte, error)

func (*HostnameHashes) UnmarshalJSON

func (hhm *HostnameHashes) 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"`
	// HostnameHashes stores the config hash for each master instance
	HostnameHashes HostnameHashes `json:"hostnameHashes,omitempty"`
}

func NewUpdateBlob

func NewUpdateBlob() *UpdateBlob

Jump to

Keyboard shortcuts

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