client

package
v0.0.0-...-675700b Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package client is the API message for Bytebase API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckServerHealth

func CheckServerHealth(reqURL string) error

func NewClient

func NewClient(bb *bbv1.Bytebase, url, version, email, password string) (api.Client, error)

NewClient returns the new Bytebase API client.

Types

type Client

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

client is the API message for Bytebase API client.

func (*Client) CreateEnvironment

func (c *Client) CreateEnvironment(ctx context.Context, environmentID string, create *api.EnvironmentMessage) (*api.EnvironmentMessage, error)

CreateEnvironment creates the environment.

func (*Client) CreateInstance

func (c *Client) CreateInstance(ctx context.Context, environmentID, instanceID string, instance *api.InstanceMessage) (*api.InstanceMessage, error)

CreateInstance creates the instance.

func (*Client) GetEnvironment

func (c *Client) GetEnvironment(ctx context.Context, environmentID string) (*api.EnvironmentMessage, error)

GetEnvironment gets the environment by id.

func (*Client) GetInstance

func (c *Client) GetInstance(ctx context.Context, find *api.InstanceFindMessage) (*api.InstanceMessage, error)

GetInstance gets the instance by id.

func (*Client) GetLoginCookie

func (c *Client) GetLoginCookie() api.LoginCookie

func (*Client) Login

func (c *Client) Login(auth *api.AuthRequest) (int, error)

Login will login the user and get the response.

func (*Client) Signup

func (c *Client) Signup(cur *api.CreateUserRequest) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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