client

package
v0.0.0-...-02d28e6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 9 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
}

func NewClient

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

func (*Client) CreatePackage

func (c *Client) CreatePackage(pkg *types.Package) (*types.Package, error)

func (*Client) DeletePackage

func (c *Client) DeletePackage(packageId string) (string, error)

func (*Client) GetAllPackages

func (c *Client) GetAllPackages() (*types.AllPackages, error)

func (*Client) GetCurrentUser

func (c *Client) GetCurrentUser() (*types.CurrentUser, error)

func (*Client) GetPackage

func (c *Client) GetPackage(packageId string) (*types.Package, error)

func (*Client) GetPackageWithETag

func (c *Client) GetPackageWithETag(packageId string) (*types.Package, string, error)

func (*Client) GetVersion

func (c *Client) GetVersion() (*types.Version, error)

func (*Client) SetAccessToken

func (c *Client) SetAccessToken(token string)

func (*Client) SetBasicAuth

func (c *Client) SetBasicAuth(user, password string)

func (*Client) SetDebug

func (c *Client) SetDebug()

func (*Client) UpdatePackage

func (c *Client) UpdatePackage(pkg *types.Package, eTag string) (*types.Package, error)

type GoCDClient

type GoCDClient interface {
	GetVersion() (*types.Version, error)
}

Jump to

Keyboard shortcuts

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