types

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SORT_INPUT_TO_QUERY_MAP = map[string]string{
	"created-at": "created_at",
	"last-used":  "last_accessed_at",
	"size":       "size_in_bytes",
}

Functions

This section is empty.

Types

type ActionsCache

type ActionsCache struct {
	Id             int     `json:"id"`
	Ref            string  `json:"ref"`
	Key            string  `json:"key"`
	Version        string  `json:"version"`
	LastAccessedAt string  `json:"last_accessed_at"`
	CreatedAt      string  `json:"created_at"`
	SizeInBytes    float64 `json:"size_in_bytes"`
}

type BaseOptions

type BaseOptions struct {
	Repo   string
	Branch string
	Key    string
}

func (*BaseOptions) GenerateBaseQueryParams

func (o *BaseOptions) GenerateBaseQueryParams(query url.Values)

type DeleteApiResponse

type DeleteApiResponse struct {
	TotalCount    int            `json:"total_count"`
	ActionsCaches []ActionsCache `json:"actions_caches"`
}

type DeleteOptions

type DeleteOptions struct {
	BaseOptions
	Confirm bool
}

type HandledError

type HandledError struct {
	Message    string
	InnerError error
}

func (HandledError) Error

func (err HandledError) Error() string

Allow HandledError to satisfy error interface.

type ListApiResponse

type ListApiResponse struct {
	TotalCount    int            `json:"total_count"`
	ActionsCaches []ActionsCache `json:"actions_caches"`
}

type ListOptions

type ListOptions struct {
	BaseOptions
	Limit int
	Order string
	Sort  string
}

func (*ListOptions) GenerateQueryParams

func (o *ListOptions) GenerateQueryParams(query url.Values)

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

type RepoLevelUsageApiResponse

type RepoLevelUsageApiResponse struct {
	FullName               string  `json:"full_name"`
	ActiveCacheSizeInBytes float64 `json:"active_caches_size_in_bytes"`
	ActiveCacheCount       float64 `json:"active_caches_count"`
}

Jump to

Keyboard shortcuts

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