Versions in this module Expand all Collapse all v0 v0.1.0 Nov 9, 2026 Changes in this version + var ErrImageTooLarge = errors.New("client: image is larger than the limit") + func ReadImage(ctx context.Context, c Client, req *sourcev1.FetchImageRequest, maxBytes int64) (string, []byte, error) + type Client interface + CancelJobRun func(ctx context.Context, req *sourcev1.CancelJobRunRequest) (*sourcev1.CancelJobRunResponse, error) + Close func() error + FetchImage func(ctx context.Context, req *sourcev1.FetchImageRequest) (ImageStream, error) + GetConfig func(ctx context.Context) (*structpb.Struct, error) + GetFilters func(ctx context.Context, req *sourcev1.GetFiltersRequest) (*sourcev1.GetFiltersResponse, error) + GetInfo func(ctx context.Context) (*sourcev1.PluginInfo, error) + GetJob func(ctx context.Context, req *sourcev1.GetJobRequest) (*sourcev1.GetJobResponse, error) + GetJobRun func(ctx context.Context, req *sourcev1.GetJobRunRequest) (*sourcev1.GetJobRunResponse, error) + GetNetworkProfile func(ctx context.Context, sourceID string) (*sourcev1.GetNetworkProfileResponse, error) + GetPackage func(ctx context.Context, req *sourcev1.GetPackageRequest) (*sourcev1.GetPackageResponse, error) + GetSeries func(ctx context.Context, req *sourcev1.GetSeriesRequest) (*sourcev1.GetSeriesResponse, error) + GetSettings func(ctx context.Context, req *sourcev1.GetSettingsRequest) (*sourcev1.GetSettingsResponse, error) + GetSettingsSchema func(ctx context.Context, req *sourcev1.GetSettingsSchemaRequest) (*sourcev1.GetSettingsSchemaResponse, error) + GetSource func(ctx context.Context, req *sourcev1.GetSourceRequest) (*sourcev1.GetSourceResponse, error) + Health func(ctx context.Context) (*sourcev1.HealthResponse, error) + InstallPackage func(ctx context.Context, req *sourcev1.InstallPackageRequest) (*sourcev1.InstallPackageResponse, error) + Latest func(ctx context.Context, req *sourcev1.LatestRequest) (*sourcev1.LatestResponse, error) + ListChapters func(ctx context.Context, req *sourcev1.ListChaptersRequest) (*sourcev1.ListChaptersResponse, error) + ListJobRuns func(ctx context.Context, req *sourcev1.ListJobRunsRequest) (*sourcev1.ListJobRunsResponse, error) + ListJobs func(ctx context.Context, req *sourcev1.ListJobsRequest) (*sourcev1.ListJobsResponse, error) + ListOrigins func(ctx context.Context, req *sourcev1.ListOriginsRequest) (*sourcev1.ListOriginsResponse, error) + ListPackages func(ctx context.Context, req *sourcev1.ListPackagesRequest) (*sourcev1.ListPackagesResponse, error) + ListPages func(ctx context.Context, req *sourcev1.ListPagesRequest) (*sourcev1.ListPagesResponse, error) + ListSources func(ctx context.Context, req *sourcev1.ListSourcesRequest) (*sourcev1.ListSourcesResponse, error) + Popular func(ctx context.Context, req *sourcev1.PopularRequest) (*sourcev1.PopularResponse, error) + RefreshOrigin func(ctx context.Context, req *sourcev1.RefreshOriginRequest) (*sourcev1.RefreshOriginResponse, error) + ReloadPackage func(ctx context.Context, req *sourcev1.ReloadPackageRequest) (*sourcev1.ReloadPackageResponse, error) + ResolveUrl func(ctx context.Context, req *sourcev1.ResolveUrlRequest) (*sourcev1.ResolveUrlResponse, error) + RunJob func(ctx context.Context, req *sourcev1.RunJobRequest) (*sourcev1.RunJobResponse, error) + Search func(ctx context.Context, req *sourcev1.SearchRequest) (*sourcev1.SearchResponse, error) + SetConfig func(ctx context.Context, values *structpb.Struct) (*structpb.Struct, error) + SetNetworkProfile func(ctx context.Context, sourceID string, profile *sourcev1.NetworkProfile) error + SetPackageSettings func(ctx context.Context, req *sourcev1.SetPackageSettingsRequest) (*sourcev1.SetPackageSettingsResponse, error) + SetSettings func(ctx context.Context, req *sourcev1.SetSettingsRequest) (*sourcev1.SetSettingsResponse, error) + SetSourceHealthCheck func(ctx context.Context, req *sourcev1.SetSourceHealthCheckRequest) (*sourcev1.SetSourceHealthCheckResponse, error) + UninstallPackage func(ctx context.Context, req *sourcev1.UninstallPackageRequest) (*sourcev1.UninstallPackageResponse, error) + UpdatePackage func(ctx context.Context, req *sourcev1.UpdatePackageRequest) (*sourcev1.UpdatePackageResponse, error) + func GRPC(conn grpc.ClientConnInterface) Client + func InProcess(p plugin.Plugin) Client + func Managed(path string, opts ManagedOptions) (Client, error) + func Remote(baseURL string, opts RemoteOptions) Client + type ImageStream interface + Close func() error + Recv func() (*sourcev1.FetchImageResponse, error) + type ManagedOptions struct + Args []string + Env []string + Logger hclog.Logger + type RemoteOptions struct + APIKey string + Connect bool + HTTPClient *http.Client