client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIKeyCredentials

func NewAPIKeyCredentials(apiKey string, allowInsecure bool) credentials.PerRPCCredentials

func NewConnectionWithAPIKey

func NewConnectionWithAPIKey(addrStr string, allowInsecure bool, apiKey string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

Types

type Client

type Client struct {
	cloudservicev1.CloudServiceClient
	// contains filtered or unexported fields
}

func New

func New(apiKey string, opts ...Opt) (*Client, error)

func (*Client) GetAccountID

func (c *Client) GetAccountID(ctx context.Context) (string, error)

type Opt

type Opt func(c *config) error

func AllowInsecure

func AllowInsecure() Opt

func WithAPIAddress

func WithAPIAddress(addr string) Opt

Jump to

Keyboard shortcuts

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