patch

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 27 Imported by: 5

Documentation

Index

Constants

View Source
const RegistryV1 = "apigeeregistry/v1"

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, client connection.RegistryClient, adminClient connection.AdminClient, in io.Reader, project string, recursive bool, jobs int, paths ...string) error

func ExportAPI

func ExportAPI(ctx context.Context, client *gapic.RegistryClient, apiName names.Api, recursive bool, root string, taskQueue chan<- tasks.Task) error

ExportAPI writes an API into a directory of YAML files.

func ExportAPIDeployment added in v0.5.8

func ExportAPIDeployment(ctx context.Context, client *gapic.RegistryClient, deploymentName names.Deployment, recursive bool, root string, taskQueue chan<- tasks.Task) error

ExportAPIDeployment writes an API deployment into a directory of YAML files.

func ExportAPISpec added in v0.5.8

func ExportAPISpec(ctx context.Context, client *gapic.RegistryClient, specName names.Spec, recursive bool, root string, taskQueue chan<- tasks.Task) error

ExportAPISpec writes an API spec into a directory of YAML files.

func ExportAPIVersion added in v0.5.8

func ExportAPIVersion(ctx context.Context, client *gapic.RegistryClient, versionName names.Version, recursive bool, root string, taskQueue chan<- tasks.Task) error

ExportAPIVersion writes an API version into a directory of YAML files.

func ExportArtifact

func ExportArtifact(ctx context.Context, client *gapic.RegistryClient, artifactName names.Artifact, root string, taskQueue chan<- tasks.Task) error

ExportArtifact writes an artifact into a directory of YAML files.

func ExportProject

func ExportProject(ctx context.Context, client *gapic.RegistryClient, adminClient *gapic.AdminClient, projectName names.Project, root string, taskQueue chan<- tasks.Task) error

ExportProject writes a project into a directory of YAML files.

func NewApi added in v0.5.9

func NewApi(ctx context.Context, client *gapic.RegistryClient, message *rpc.Api, nested bool) (*encoding.Api, error)

NewApi allows an API to be individually exported as a YAML file.

func NewApiDeployment added in v0.5.9

func NewApiDeployment(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiDeployment, nested bool) (*encoding.ApiDeployment, error)

NewApiDeployment allows an API deployment to be individually exported as a YAML file.

func NewApiSpec added in v0.5.9

func NewApiSpec(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiSpec, nested bool) (*encoding.ApiSpec, error)

NewApiSpec allows an API spec to be individually exported as a YAML file.

func NewApiVersion added in v0.5.9

func NewApiVersion(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiVersion, nested bool) (*encoding.ApiVersion, error)

NewApiVersion allows an API version to be individually exported as a YAML file.

func NewArtifact added in v0.5.9

func NewArtifact(ctx context.Context, client *gapic.RegistryClient, message *rpc.Artifact) (*encoding.Artifact, error)

NewArtifact allows an artifact to be individually exported as a YAML file.

func NewProject added in v0.5.9

func NewProject(ctx context.Context, client *gapic.RegistryClient, message *rpc.Project) (*encoding.Project, error)

NewProject gets a serialized representation of a project.

func SetStoreArchivesAsYaml added in v0.6.13

func SetStoreArchivesAsYaml(ctx context.Context) context.Context

func UnmarshalContents added in v0.6.13

func UnmarshalContents(contents []byte, mimeType string, message proto.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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