mock

package
v0.0.0-...-6921867 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is a mock implementation of linodego.Client

func NewClient

func NewClient() *Client

NewClient is a mock implementation of linodego.Client constructor

func (*Client) ListLKEClusterPools

func (c *Client) ListLKEClusterPools(ctx context.Context, ID int, opts interface{}) ([]LKEClusterPool, error)

ListLKEClusterPools is a mock implementation of linodego's Kubernetes ListLKEClusterPools function

func (*Client) ListLKEClusters

func (c *Client) ListLKEClusters(ctx context.Context, opts interface{}) ([]LKECluster, error)

ListLKEClusters is a mock implementation of linodego's Kubernetes ListLKEClusters function

type LKECluster

type LKECluster struct {
	ID      int `json:"id"`
	Created string
	Updated string
	Label   string
	Region  string
	Tags    []string
	Status  string
	Version string
}

LKECluster is a mock implementation of linodego's Kubernetes LKECluster type

type LKEClusterPool

type LKEClusterPool struct {
	ID      int                    `json:"id"`
	Label   string                 `json:"label"`
	Count   int                    `json:"count"`
	Type    string                 `json:"string"`
	Linodes []LKEClusterPoolLinode `json:"linodes"`
}

LKEClusterPool is a mock implementation of linodego's Kubernetes LKEClusterPool type

type LKEClusterPoolLinode

type LKEClusterPoolLinode struct {
	ID     *int
	Status LKELinodeStatus
}

LKEClusterPoolLinode is a mock implementation of linodego's Kubernetes LKEClusterPoolLinode type

func NewLKEClusterPoolLinode

func NewLKEClusterPoolLinode(ID int) LKEClusterPoolLinode

NewLKEClusterPoolLinode returns a new LKEClusterPoolLinode used because the ID is a *int

type LKELinodeStatus

type LKELinodeStatus string

LKELinodeStatus is a mock implementation of linodego's LKELinodeStatus enum

const (
	LKELinodeReady    LKELinodeStatus = "ready"
	LKELinodeNotReady LKELinodeStatus = "not_ready"
)

LKEClusterPoolStatus constants reflect the current status of an LKEClusterPool

Jump to

Keyboard shortcuts

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