Documentation
¶
Index ¶
- type ApiList
- type ArtifactList
- type DAO
- func (d *DAO) DeleteApi(ctx context.Context, name names.Api) error
- func (d *DAO) DeleteArtifact(ctx context.Context, name names.Artifact) error
- func (d *DAO) DeleteProject(ctx context.Context, name names.Project) error
- func (d *DAO) DeleteSpec(ctx context.Context, name names.Spec) error
- func (d *DAO) DeleteSpecRevision(ctx context.Context, name names.SpecRevision) error
- func (d *DAO) DeleteVersion(ctx context.Context, name names.Version) error
- func (d *DAO) GetApi(ctx context.Context, name names.Api) (*models.Api, error)
- func (d *DAO) GetArtifact(ctx context.Context, name names.Artifact) (*models.Artifact, error)
- func (d *DAO) GetArtifactContents(ctx context.Context, name names.Artifact) (*models.Blob, error)
- func (d *DAO) GetProject(ctx context.Context, name names.Project) (*models.Project, error)
- func (d *DAO) GetSpec(ctx context.Context, name names.Spec) (*models.Spec, error)
- func (d *DAO) GetSpecRevision(ctx context.Context, name names.SpecRevision) (*models.Spec, error)
- func (d *DAO) GetSpecRevisionContents(ctx context.Context, name names.SpecRevision) (*models.Blob, error)
- func (d *DAO) GetVersion(ctx context.Context, name names.Version) (*models.Version, error)
- func (d *DAO) ListApiArtifacts(ctx context.Context, parent names.Api, opts PageOptions) (ArtifactList, error)
- func (d *DAO) ListApis(ctx context.Context, parent names.Project, opts PageOptions) (ApiList, error)
- func (d *DAO) ListProjectArtifacts(ctx context.Context, parent names.Project, opts PageOptions) (ArtifactList, error)
- func (d *DAO) ListProjects(ctx context.Context, opts PageOptions) (ProjectList, error)
- func (d *DAO) ListSpecArtifacts(ctx context.Context, parent names.Spec, opts PageOptions) (ArtifactList, error)
- func (d *DAO) ListSpecRevisions(ctx context.Context, parent names.Spec, opts PageOptions) (SpecList, error)
- func (d *DAO) ListSpecs(ctx context.Context, parent names.Version, opts PageOptions) (SpecList, error)
- func (d *DAO) ListVersionArtifacts(ctx context.Context, parent names.Version, opts PageOptions) (ArtifactList, error)
- func (d *DAO) ListVersions(ctx context.Context, parent names.Api, opts PageOptions) (VersionList, error)
- func (d *DAO) SaveApi(ctx context.Context, api *models.Api) error
- func (d *DAO) SaveArtifact(ctx context.Context, artifact *models.Artifact) error
- func (d *DAO) SaveArtifactContents(ctx context.Context, artifact *models.Artifact, contents []byte) error
- func (d *DAO) SaveProject(ctx context.Context, project *models.Project) error
- func (d *DAO) SaveSpecRevision(ctx context.Context, revision *models.Spec) error
- func (d *DAO) SaveSpecRevisionContents(ctx context.Context, spec *models.Spec, contents []byte) error
- func (d *DAO) SaveSpecRevisionTag(ctx context.Context, tag *models.SpecRevisionTag) error
- func (d *DAO) SaveVersion(ctx context.Context, version *models.Version) error
- type PageOptions
- type ProjectList
- type SpecList
- type VersionList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactList ¶
ArtifactList contains a page of artifact resources.
type DAO ¶
func (*DAO) DeleteArtifact ¶
func (*DAO) DeleteProject ¶
func (*DAO) DeleteSpecRevision ¶
func (*DAO) DeleteVersion ¶
func (*DAO) GetArtifact ¶
func (*DAO) GetArtifactContents ¶
func (*DAO) GetProject ¶
func (*DAO) GetSpecRevision ¶
func (*DAO) GetSpecRevisionContents ¶
func (*DAO) GetVersion ¶
func (*DAO) ListApiArtifacts ¶
func (d *DAO) ListApiArtifacts(ctx context.Context, parent names.Api, opts PageOptions) (ArtifactList, error)
func (*DAO) ListProjectArtifacts ¶
func (d *DAO) ListProjectArtifacts(ctx context.Context, parent names.Project, opts PageOptions) (ArtifactList, error)
func (*DAO) ListProjects ¶
func (d *DAO) ListProjects(ctx context.Context, opts PageOptions) (ProjectList, error)
func (*DAO) ListSpecArtifacts ¶
func (d *DAO) ListSpecArtifacts(ctx context.Context, parent names.Spec, opts PageOptions) (ArtifactList, error)
func (*DAO) ListSpecRevisions ¶
func (*DAO) ListVersionArtifacts ¶
func (d *DAO) ListVersionArtifacts(ctx context.Context, parent names.Version, opts PageOptions) (ArtifactList, error)
func (*DAO) ListVersions ¶
func (d *DAO) ListVersions(ctx context.Context, parent names.Api, opts PageOptions) (VersionList, error)
func (*DAO) SaveArtifact ¶
func (*DAO) SaveArtifactContents ¶
func (*DAO) SaveProject ¶
func (*DAO) SaveSpecRevision ¶
func (*DAO) SaveSpecRevisionContents ¶
func (*DAO) SaveSpecRevisionTag ¶
type PageOptions ¶
type PageOptions struct { // Size is the maximum number of resources to include in the response. // If unspecified, page size defaults to 50. Values above 1000 are coerced to 1000. Size int32 // Filter is the filter string for this listing request, as described at https://google.aip.dev/160. Filter string // Token is a value returned from with a previous page in a series of listing requests. // If specified, listing will continue from the end of the previous page. Otherwise, // the first page in a listing series will be returned. Token string }
PageOptions contains custom arguments for listing requests.
type ProjectList ¶
ProjectList contains a page of project resources.
type VersionList ¶
VersionList contains a page of version resources.
Click to show internal directories.
Click to hide internal directories.