Versions in this module Expand all Collapse all v2 v2.0.0 Feb 7, 2022 Changes in this version + func BaseURL() string + type Client interface + GetTerm func(ctx context.Context, owner, name string, revision int) (*wireformat.Term, error) + GetTermsByOwner func(ctx context.Context, owner string) ([]wireformat.Term, error) + GetUnsignedTerms func(context.Context, *wireformat.CheckAgreementsRequest) ([]wireformat.GetTermsResponse, error) + GetUsersAgreements func(ctx context.Context) ([]wireformat.AgreementResponse, error) + Publish func(ctx context.Context, owner, name string, revision int) (string, error) + SaveAgreement func(context.Context, *wireformat.SaveAgreements) (*wireformat.SaveAgreementResponses, error) + SaveTerm func(ctx context.Context, owner, name, content string) (string, error) + func NewClient(options ...ClientOption) (Client, error) + type ClientOption func(h *client) + func HTTPClient(c httpClient) ClientOption + func ServiceURL(serviceURL string) ClientOption Other modules containing this package github.com/juju/terms-client