Documentation ¶
Index ¶
- func Build(ctx context.Context, addr, token string) (o *configv1.Build, err error)
- func CreateSite(ctx context.Context, addr, token string, in *sitesv1.CreateSiteRequest) (o *emptypb.Empty, err error)
- func DeleteSite(ctx context.Context, addr, token string, in *sitesv1.DeleteSiteRequest) (o *sitesv1.DeleteSiteResponse, err error)
- func Do(ctx context.Context, addr string, token credentials.PerRPCCredentials, ...) error
- func DoQuery(ctx context.Context, addr string, token credentials.PerRPCCredentials, ...) error
- func DoSite(ctx context.Context, addr string, token credentials.PerRPCCredentials, ...) error
- func Endpoint(uri string) oauth2.Endpoint
- func GetSite(ctx context.Context, addr, token string, in *sitesv1.GetSiteRequest) (o *sitesv1.Site, err error)
- func ListSites(ctx context.Context, addr, token string, in *sitesv1.ListSitesRequest) (o *sitesv1.ListSitesResponse, err error)
- func LoginBase(ctx context.Context, endpoint, username, password string) (*oauth2.Token, error)
- func Query(ctx context.Context, addr, token string, in *queryv1.QueryRequest) (o *queryv1.QueryResponse, err error)
- func Source(endpoint, id, secret string, scope ...scopes.Scope) *clientcredentials.Config
- type QueryClient
- type Sites
- type Vince
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSite ¶
func DeleteSite ¶
func DeleteSite(ctx context.Context, addr, token string, in *sitesv1.DeleteSiteRequest, ) (o *sitesv1.DeleteSiteResponse, err error)
func Do ¶
func Do(ctx context.Context, addr string, token credentials.PerRPCCredentials, f func(context.Context, v1.VinceClient) error) error
func DoQuery ¶
func DoQuery(ctx context.Context, addr string, token credentials.PerRPCCredentials, f func(context.Context, queryv1.QueryClient) error) error
func DoSite ¶
func DoSite(ctx context.Context, addr string, token credentials.PerRPCCredentials, f func(context.Context, sitesv1.SitesClient) error) error
func ListSites ¶
func ListSites(ctx context.Context, addr, token string, in *sitesv1.ListSitesRequest, ) (o *sitesv1.ListSitesResponse, err error)
func Query ¶
func Query(ctx context.Context, addr, token string, in *queryv1.QueryRequest, ) (o *queryv1.QueryResponse, err error)
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)
Click to show internal directories.
Click to hide internal directories.