do

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.0.37

func Build(ctx context.Context,
	addr, token string,
) (o *configv1.Build, err error)

func CreateSite

func CreateSite(ctx context.Context,
	addr, token string,
	in *sitesv1.CreateSiteRequest,
) (o *emptypb.Empty, err error)

func DeleteSite

func DeleteSite(ctx context.Context,
	addr, token string,
	in *sitesv1.DeleteSiteRequest,
) (o *sitesv1.DeleteSiteResponse, err error)

func Endpoint added in v0.0.37

func Endpoint(uri string) oauth2.Endpoint

func GetSite

func GetSite(ctx context.Context,
	addr, token string,
	in *sitesv1.GetSiteRequest,
) (o *sitesv1.Site, err error)

func ListSites

func ListSites(ctx context.Context,
	addr, token string,
	in *sitesv1.ListSitesRequest,
) (o *sitesv1.ListSitesResponse, err error)

func LoginBase added in v0.0.37

func LoginBase(ctx context.Context, endpoint, username, password string) (*oauth2.Token, error)

func Query

func Query(ctx context.Context,
	addr, token string,
	in *queryv1.QueryRequest,
) (o *queryv1.QueryResponse, err error)

func Source added in v0.0.37

func Source(endpoint, id, secret string, scope ...scopes.Scope) *clientcredentials.Config

Types

type QueryClient

type QueryClient struct {
	queryv1.QueryClient
	*grpc.ClientConn
}

func DialQuery

func DialQuery(addr string, token credentials.PerRPCCredentials) (*QueryClient, error)

type Sites

type Sites struct {
	sitesv1.SitesClient
	*grpc.ClientConn
}

func DialSites

func DialSites(addr string, token credentials.PerRPCCredentials) (*Sites, error)

type Vince

type Vince struct {
	v1.VinceClient
	*grpc.ClientConn
}

func Dial

func Dial(addr string, token credentials.PerRPCCredentials) (*Vince, error)

Jump to

Keyboard shortcuts

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