sherlock

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 11 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 {
	// contains filtered or unexported fields
}

Client contains an API client for a remote sherlock server

func New

func New(config config.Config, iapToken string) (*Client, error)

New configures a new Client instance which confers the ability to issue requests against the API of a sherlock server

func (*Client) ClusterReleases

func (c *Client) ClusterReleases(clusterName string) (Releases, error)

func (*Client) Clusters

func (c *Client) Clusters() (Clusters, error)

func (*Client) EnvironmentReleases

func (c *Client) EnvironmentReleases(environmentName string) (Releases, error)

func (*Client) Environments

func (c *Client) Environments() (Environments, error)

type Cluster

type Cluster struct {
	*models.V2controllersCluster
}

type Clusters

type Clusters []Cluster

type Environment

type Environment struct {
	*models.V2controllersEnvironment
}

type Environments

type Environments []Environment

type Release

type Release struct {
	*models.V2controllersChartRelease
}

func (*Release) HelmfileRefOrDefault

func (r *Release) HelmfileRefOrDefault(def string) string

type Releases

type Releases []Release

type StateLoader

type StateLoader interface {
	Environments() (Environments, error)
	Clusters() (Clusters, error)
	ClusterReleases(clusterName string) (Releases, error)
	EnvironmentReleases(environmentName string) (Releases, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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