client

package
v0.0.0-...-666c054 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 10 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultEndpoint = "grpc.g-portal.cloud:443"
View Source
const Version = "23.3.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOption

type AuthOption struct {
	Provider *AuthProviderOption
}

func (*AuthOption) GetRequestMetadata

func (a *AuthOption) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*AuthOption) RequireTransportSecurity

func (a *AuthOption) RequireTransportSecurity() bool

type AuthProviderOption

type AuthProviderOption interface {
	GetToken(context.Context) (string, error)
}

type Client

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

func NewClient

func NewClient(extraOptions ...interface{}) (*Client, error)

NewClient Returns a new GRPC client

func (*Client) AuthClient

func (c *Client) AuthClient() authv1grpc.AuthServiceClient

AuthClient Returns the CloudServiceClient

func (*Client) CloudClient

func (c *Client) CloudClient() cloudv1grpc.CloudServiceClient

CloudClient Returns the CloudServiceClient

func (*Client) MetadataClient

func (c *Client) MetadataClient() metadatav1grpc.MetadataServiceClient

MetadataClient Returns the MetadataServiceClient

func (*Client) NetworkClient

func (c *Client) NetworkClient() networkv1grpc.NetworkServiceClient

NetworkClient Returns the NetworkServiceClient

func (*Client) PaymentClient

func (c *Client) PaymentClient() paymentv1grpc.PaymentServiceClient

PaymentClient Returns the PaymentServiceClient

type EndpointOverrideOption

type EndpointOverrideOption string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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