lagoondb

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoResult = errors.New("no rows in result set")

ErrNoResult is returned by client methods if there is no result.

Functions

This section is empty.

Types

type Client

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

Client is a Lagoon API-DB client

func NewClient

func NewClient(ctx context.Context, dsn string) (*Client, error)

NewClient returns a new Lagoon DB Client.

func (*Client) Projects

func (c *Client) Projects(ctx context.Context) ([]Project, error)

Projects returns the Environment associated with the given Namespace name (on Openshift this is the project name).

type Project

type Project struct {
	ID   int    `db:"id"`
	Name string `db:"name"`
}

Project is a Lagoon project.

Jump to

Keyboard shortcuts

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