Documentation ¶
Index ¶
- func FetchArtifactContents(ctx context.Context, client *gapic.RegistryClient, artifact *rpc.Artifact) error
- func FetchSpecContents(ctx context.Context, client *gapic.RegistryClient, spec *rpc.ApiSpec) error
- func GetAPI(ctx context.Context, client *gapic.RegistryClient, name names.Api, ...) error
- func GetArtifact(ctx context.Context, client *gapic.RegistryClient, name names.Artifact, ...) error
- func GetDeployment(ctx context.Context, client *gapic.RegistryClient, name names.Deployment, ...) error
- func GetDeploymentRevision(ctx context.Context, client *gapic.RegistryClient, ...) error
- func GetProject(ctx context.Context, client *gapic.AdminClient, name names.Project, ...) error
- func GetSpec(ctx context.Context, client *gapic.RegistryClient, name names.Spec, ...) error
- func GetSpecRevision(ctx context.Context, client *gapic.RegistryClient, name names.SpecRevision, ...) error
- func GetVersion(ctx context.Context, client *gapic.RegistryClient, name names.Version, ...) error
- func ListAPIs(ctx context.Context, client *gapic.RegistryClient, name names.Api, ...) error
- func ListArtifacts(ctx context.Context, client *gapic.RegistryClient, name names.Artifact, ...) error
- func ListDeploymentRevisions(ctx context.Context, client *gapic.RegistryClient, ...) error
- func ListDeployments(ctx context.Context, client *gapic.RegistryClient, name names.Deployment, ...) error
- func ListProjects(ctx context.Context, client *gapic.AdminClient, name names.Project, ...) error
- func ListSpecRevisions(ctx context.Context, client *gapic.RegistryClient, name names.SpecRevision, ...) error
- func ListSpecs(ctx context.Context, client *gapic.RegistryClient, name names.Spec, ...) error
- func ListVersions(ctx context.Context, client *gapic.RegistryClient, name names.Version, ...) error
- func SetArtifact(ctx context.Context, client *gapic.RegistryClient, artifact *rpc.Artifact) error
- func VerifyLocation(ctx context.Context, client connection.RegistryClient, location string) error
- func Visit(ctx context.Context, v Visitor, options VisitorOptions) error
- type ApiHandler
- type ArtifactHandler
- type DeploymentHandler
- type ProjectHandler
- type SpecHandler
- type SubtreeVisitor
- func (v *SubtreeVisitor) ApiHandler() ApiHandler
- func (v *SubtreeVisitor) ArtifactHandler() ArtifactHandler
- func (v *SubtreeVisitor) DeploymentHandler() DeploymentHandler
- func (v *SubtreeVisitor) DeploymentRevisionHandler() DeploymentHandler
- func (v *SubtreeVisitor) ProjectHandler() ProjectHandler
- func (v *SubtreeVisitor) SpecHandler() SpecHandler
- func (v *SubtreeVisitor) SpecRevisionHandler() SpecHandler
- func (v *SubtreeVisitor) VersionHandler() VersionHandler
- type Unsupported
- func (v *Unsupported) ApiHandler() ApiHandler
- func (v *Unsupported) ArtifactHandler() ArtifactHandler
- func (v *Unsupported) DeploymentHandler() DeploymentHandler
- func (v *Unsupported) DeploymentRevisionHandler() DeploymentHandler
- func (v *Unsupported) ProjectHandler() ProjectHandler
- func (v *Unsupported) SpecHandler() SpecHandler
- func (v *Unsupported) SpecRevisionHandler() SpecHandler
- func (v *Unsupported) VersionHandler() VersionHandler
- type VersionHandler
- type Visitor
- type VisitorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchArtifactContents ¶
func FetchSpecContents ¶
func GetAPI ¶
func GetAPI(ctx context.Context, client *gapic.RegistryClient, name names.Api, handler ApiHandler) error
func GetArtifact ¶
func GetArtifact(ctx context.Context, client *gapic.RegistryClient, name names.Artifact, getContents bool, handler ArtifactHandler) error
func GetDeployment ¶
func GetDeployment(ctx context.Context, client *gapic.RegistryClient, name names.Deployment, handler DeploymentHandler) error
func GetDeploymentRevision ¶
func GetDeploymentRevision(ctx context.Context, client *gapic.RegistryClient, name names.DeploymentRevision, handler DeploymentHandler) error
func GetProject ¶
func GetProject(ctx context.Context, client *gapic.AdminClient, name names.Project, implicitProject *rpc.Project, handler ProjectHandler) error
func GetSpec ¶
func GetSpec(ctx context.Context, client *gapic.RegistryClient, name names.Spec, getContents bool, handler SpecHandler) error
func GetSpecRevision ¶
func GetSpecRevision(ctx context.Context, client *gapic.RegistryClient, name names.SpecRevision, getContents bool, handler SpecHandler) error
func GetVersion ¶
func GetVersion(ctx context.Context, client *gapic.RegistryClient, name names.Version, handler VersionHandler) error
func ListAPIs ¶
func ListAPIs(ctx context.Context, client *gapic.RegistryClient, name names.Api, pageSize int32, filter string, handler ApiHandler) error
func ListArtifacts ¶
func ListDeploymentRevisions ¶
func ListDeploymentRevisions(ctx context.Context, client *gapic.RegistryClient, name names.DeploymentRevision, pageSize int32, filter string, handler DeploymentHandler) error
func ListDeployments ¶
func ListDeployments(ctx context.Context, client *gapic.RegistryClient, name names.Deployment, pageSize int32, filter string, handler DeploymentHandler) error
func ListProjects ¶
func ListSpecRevisions ¶
func ListSpecRevisions(ctx context.Context, client *gapic.RegistryClient, name names.SpecRevision, pageSize int32, filter string, getContents bool, handler SpecHandler) error
func ListVersions ¶
func ListVersions(ctx context.Context, client *gapic.RegistryClient, name names.Version, pageSize int32, filter string, handler VersionHandler) error
func SetArtifact ¶ added in v0.6.4
func VerifyLocation ¶ added in v0.6.4
func VerifyLocation(ctx context.Context, client connection.RegistryClient, location string) error
Types ¶
type DeploymentHandler ¶
type DeploymentHandler func(context.Context, *rpc.ApiDeployment) error
type SubtreeVisitor ¶ added in v0.6.4
type SubtreeVisitor struct { Options VisitorOptions Visitor Visitor }
SubtreeVisitor is a Visitor implementation that can be passed to the Visit() function. It will run the handlers in Visitor against each resource directly matched in Visit() as well as each resource that is a descendant of those resources. (For example, if the pattern matches a Version, the SubtreeVisitor will be run against all of that Versions's Artifacts and Specs, and the Spec's Artifacts as well.) Only the current revisions of Specs and Deployments are visited.
func (*SubtreeVisitor) ApiHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) ApiHandler() ApiHandler
func (*SubtreeVisitor) ArtifactHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) ArtifactHandler() ArtifactHandler
func (*SubtreeVisitor) DeploymentHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) DeploymentHandler() DeploymentHandler
func (*SubtreeVisitor) DeploymentRevisionHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) DeploymentRevisionHandler() DeploymentHandler
func (*SubtreeVisitor) ProjectHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) ProjectHandler() ProjectHandler
func (*SubtreeVisitor) SpecHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) SpecHandler() SpecHandler
func (*SubtreeVisitor) SpecRevisionHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) SpecRevisionHandler() SpecHandler
func (*SubtreeVisitor) VersionHandler ¶ added in v0.6.4
func (v *SubtreeVisitor) VersionHandler() VersionHandler
type Unsupported ¶ added in v0.6.3
type Unsupported struct { }
Unsupported provides default handlers for all types that return "unsupported" errors. Include it as an extension to fill out incomplete visitor implementations.
func (*Unsupported) ApiHandler ¶ added in v0.6.3
func (v *Unsupported) ApiHandler() ApiHandler
func (*Unsupported) ArtifactHandler ¶ added in v0.6.3
func (v *Unsupported) ArtifactHandler() ArtifactHandler
func (*Unsupported) DeploymentHandler ¶ added in v0.6.3
func (v *Unsupported) DeploymentHandler() DeploymentHandler
func (*Unsupported) DeploymentRevisionHandler ¶ added in v0.6.3
func (v *Unsupported) DeploymentRevisionHandler() DeploymentHandler
func (*Unsupported) ProjectHandler ¶ added in v0.6.3
func (v *Unsupported) ProjectHandler() ProjectHandler
func (*Unsupported) SpecHandler ¶ added in v0.6.3
func (v *Unsupported) SpecHandler() SpecHandler
func (*Unsupported) SpecRevisionHandler ¶ added in v0.6.3
func (v *Unsupported) SpecRevisionHandler() SpecHandler
func (*Unsupported) VersionHandler ¶ added in v0.6.3
func (v *Unsupported) VersionHandler() VersionHandler
type VersionHandler ¶
type VersionHandler func(context.Context, *rpc.ApiVersion) error
type Visitor ¶
type Visitor interface { ProjectHandler() ProjectHandler ApiHandler() ApiHandler DeploymentHandler() DeploymentHandler DeploymentRevisionHandler() DeploymentHandler VersionHandler() VersionHandler SpecHandler() SpecHandler SpecRevisionHandler() SpecHandler ArtifactHandler() ArtifactHandler }
type VisitorOptions ¶
type VisitorOptions struct { RegistryClient connection.RegistryClient AdminClient connection.AdminClient Pattern string PageSize int32 Filter string GetContents bool ImplicitProject *rpc.Project // used as placeholder if Project is unaccessible }
Click to show internal directories.
Click to hide internal directories.