api

package
v0.0.0-...-348c588 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 15 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 {
	ProjectsClient func() projectsv1alpha1connect.ProjectsServiceClient
	// contains filtered or unexported fields
}

Client manages state for interacting with the JetCloud API, as well as communicating with the JetCloud API.

func NewClient

func NewClient(ctx context.Context, host string, token *session.Token) *Client

func (*Client) CreateProject

func (c *Client) CreateProject(
	ctx context.Context,
	orgID ids.OrgID,
	repoURL string,
	directory string,
	name string,
) (*projectsv1alpha1.Project, error)

func (*Client) CreateToken

func (*Client) GetAWSCredentials

func (c *Client) GetAWSCredentials(ctx context.Context) (*nixv1alpha1.AWSCredentials, error)

func (*Client) GetAccessToken

func (c *Client) GetAccessToken(
	ctx context.Context,
	apiToken ids.APIToken,
) (*tokenservicev1alpha1.GetAccessTokenResponse, error)

func (*Client) GetBinCache

func (c *Client) GetBinCache(
	ctx context.Context,
) (*nixv1alpha1.GetBinCacheResponse, error)

func (*Client) GetMember

func (c *Client) GetMember(
	ctx context.Context,
	id string,
) (*membersv1alpha1.Member, error)

func (*Client) ListProjects

func (c *Client) ListProjects(
	ctx context.Context,
	orgID ids.OrgID,
) ([]*projectsv1alpha1.Project, error)

func (*Client) SecretsService

Jump to

Keyboard shortcuts

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