Sha256: 62c7b62c7a5d504463dc932b1ea4b5ea3f8b0ce40522345fd70ecd3399f58b87

Contents?: true

Size: 900 Bytes

Versions: 36

Compression:

Stored size: 900 Bytes

Contents

package <%= package %>

import (
	"strconv"
)

type ProgressCallbackReturn int

const (
	ContinueWatching = iota
	StopWatching = iota
)

type OperationProgressCallback func(*ActionActionStatePollOutput) ProgressCallbackReturn

type BlockingOperationWatcher interface {
	IsBlocking() bool
	OperationStatus() (*ActionActionStateShowResponse, error)
	WaitForOperation(timeout float64) (*ActionActionStatePollResponse, error)
	WatchOperation(timeout float64, updateIn float64, callback OperationProgressCallback) (*ActionActionStatePollResponse, error)
}

func convertInt64ToString(v int64) string {
	return strconv.FormatInt(v, 10)
}

func convertFloat64ToString(v float64) string {
	return strconv.FormatFloat(v, 'f', -1, 64)
}

func convertBoolToString(v bool) string {
	if v {
		return "1"
	} else {
		return "0"
	}
}

func convertResourceToString(v int64) string {
	return convertInt64ToString(v)
}

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
haveapi-go-client-0.25.0 template/types.go.erb
haveapi-go-client-0.24.0 template/types.go.erb
haveapi-go-client-0.23.7 template/types.go.erb
haveapi-go-client-0.23.6 template/types.go.erb
haveapi-go-client-0.23.5 template/types.go.erb
haveapi-go-client-0.23.4 template/types.go.erb
haveapi-go-client-0.23.3 template/types.go.erb
haveapi-go-client-0.23.2 template/types.go.erb
haveapi-go-client-0.23.1 template/types.go.erb
haveapi-go-client-0.23.0 template/types.go.erb
haveapi-go-client-0.22.1 template/types.go.erb
haveapi-go-client-0.22.0 template/types.go.erb
haveapi-go-client-0.21.1 template/types.go.erb
haveapi-go-client-0.21.0 template/types.go.erb
haveapi-go-client-0.20.0 template/types.go.erb
haveapi-go-client-0.19.3 template/types.go.erb
haveapi-go-client-0.19.2 template/types.go.erb
haveapi-go-client-0.19.1 template/types.go.erb
haveapi-go-client-0.19.0 template/types.go.erb
haveapi-go-client-0.18.2 template/types.go.erb