internal

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Distribution string
View Source
var GithubRepository = "hazelcast/hazelcast-cloud-cli"
View Source
var Version string

Functions

func Login added in v1.2.2

func Login(apiKey string, apiSecret string) (*hazelcastcloud.Client, *hazelcastcloud.Response, error)

func NewClient

func NewClient() *hazelcastcloud.Client

func Validate

func Validate(a interface{}, b *hazelcastcloud.Response, c error) interface{}

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	BrowserDownloadUrl string `json:"browser_download_url"`
}

type ConfigKey

type ConfigKey string
const (
	ApiKey               ConfigKey = "api-key"
	ApiSecret            ConfigKey = "api-secret"
	LastVersionCheckTime ConfigKey = "last-version-check-time"
)

type ConfigService

type ConfigService interface {
	Set(key ConfigKey, value string)
	Get(key ConfigKey) string
}

func NewConfigService

func NewConfigService() ConfigService

type Release

type Release struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

type UpdateService

type UpdateService struct {
	ConfigService ConfigService
}

func NewUpdaterService

func NewUpdaterService() UpdateService

func (UpdateService) Check

func (v UpdateService) Check(force bool)

func (UpdateService) Clean

func (v UpdateService) Clean()

func (UpdateService) Run

func (v UpdateService) Run()

func (UpdateService) Update

func (v UpdateService) Update()

Jump to

Keyboard shortcuts

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