rancher

package
v0.0.0-...-47f65d0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeConfigApiResponse

type KubeConfigApiResponse struct {
	Config string `json:"config"`
}

type Rancher

type Rancher struct {
	// contains filtered or unexported fields
}

func New

func New(token string, project string, serverUrl string) *Rancher

func (*Rancher) Redeploy

func (r *Rancher) Redeploy(id string) error

func (*Rancher) UpdateImage

func (r *Rancher) UpdateImage(id string, image string, tag string) error

type ServerConfig

type ServerConfig struct {
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
	TokenKey  string `json:"tokenKey"`
	URL       string `json:"url"`
	Project   string `json:"project"`
	CACerts   string `json:"cacert"`
}

ServerConfig holds the config for each server the user has setup

Jump to

Keyboard shortcuts

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