Documentation ¶
Index ¶
- Constants
- func Apply(ctx context.Context, client connection.RegistryClient, in io.Reader, ...) error
- func ExportAPI(ctx context.Context, client *gapic.RegistryClient, apiName names.Api, ...) error
- func ExportAPIDeployment(ctx context.Context, client *gapic.RegistryClient, ...) error
- func ExportAPISpec(ctx context.Context, client *gapic.RegistryClient, specName names.Spec, ...) error
- func ExportAPIVersion(ctx context.Context, client *gapic.RegistryClient, versionName names.Version, ...) error
- func ExportArtifact(ctx context.Context, client *gapic.RegistryClient, artifactName names.Artifact, ...) error
- func ExportProject(ctx context.Context, client *gapic.RegistryClient, projectName names.Project, ...) error
- func NewApi(ctx context.Context, client *gapic.RegistryClient, message *rpc.Api, ...) (*encoding.Api, error)
- func NewApiDeployment(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiDeployment, ...) (*encoding.ApiDeployment, error)
- func NewApiSpec(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiSpec, ...) (*encoding.ApiSpec, error)
- func NewApiVersion(ctx context.Context, client *gapic.RegistryClient, message *rpc.ApiVersion, ...) (*encoding.ApiVersion, error)
- func NewArtifact(ctx context.Context, client *gapic.RegistryClient, message *rpc.Artifact) (*encoding.Artifact, error)
- func NewProject(ctx context.Context, client *gapic.RegistryClient, message *rpc.Project) (*encoding.Project, error)
Constants ¶
const RegistryV1 = "apigeeregistry/v1"
Variables ¶
This section is empty.
Functions ¶
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, 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.
Types ¶
This section is empty.