Documentation ¶
Index ¶
- func AdminGetConfigV1Handler(ctx *macaron.Context) (int, []byte)
- func AdminGetStatusV1Handler(ctx *macaron.Context) (int, []byte)
- func AdminPostMaintenance(ctx *macaron.Context) (int, []byte)
- func AdminSetConfigV1Handler(ctx *macaron.Context) (int, []byte)
- func AppActiveScanHooksTaskV1Handler(ctx *macaron.Context) (int, []byte)
- func AppCallbackScanHooksV1Handler(ctx *macaron.Context) (int, []byte)
- func AppDeleteFileV1Handler(ctx *macaron.Context) (int, []byte)
- func AppDiscoveryV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetFileV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetListAppV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetManifestsV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetMetaSignV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetMetaV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGetPublicKeyV1Handler(ctx *macaron.Context) (int, []byte)
- func AppGlobalSearchV1Handler(ctx *macaron.Context) (int, []byte)
- func AppPatchFileV1Handler(ctx *macaron.Context) (int, []byte)
- func AppPostFileV1Handler(ctx *macaron.Context) (int, []byte)
- func AppPutFileV1Handler(ctx *macaron.Context) (int, []byte)
- func AppPutManifestV1Handler(ctx *macaron.Context) (int, []byte)
- func AppRegistScanHooksV1Handler(ctx *macaron.Context) (int, []byte)
- func AppScopedSearchV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcDiscoveryV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcGetACIV1Handler(ctx *macaron.Context)
- func AppcPostACIV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcPostCompleteV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcPutACIV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcPutASCV1Handler(ctx *macaron.Context) (int, []byte)
- func AppcPutManifestV1Handler(ctx *macaron.Context) (int, []byte)
- func DeleteBlobsUUUIDV2Handler(ctx *macaron.Context) (int, []byte)
- func DeleteBlobsV2Handler(ctx *macaron.Context) (int, []byte)
- func DeleteManifestRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func DeleteManifestsV2Handler(ctx *macaron.Context) (int, []byte)
- func DeletePacakgeRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func DeleteRepositoryRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func GetBlobsV2Handler(ctx *macaron.Context)
- func GetBlobsV2LibraryHandler(ctx *macaron.Context) (int, []byte)
- func GetCatalogV2Handler(ctx *macaron.Context) (int, []byte)
- func GetGPGFileV1Handler(ctx *macaron.Context) (int, []byte)
- func GetImageAncestryV1Handler(ctx *macaron.Context) (int, []byte)
- func GetImageJSONV1Handler(ctx *macaron.Context) (int, []byte)
- func GetImageLayerV1Handler(ctx *macaron.Context)
- func GetIndexPageV1Handler(ctx *macaron.Context)
- func GetManifestPageV1Handler(ctx *macaron.Context) (int, []byte)
- func GetManifestRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func GetManifestsV2Handler(ctx *macaron.Context) (int, []byte)
- func GetManifestsV2LibraryHandler(ctx *macaron.Context) (int, []byte)
- func GetNamespacePageV1Handler(ctx *macaron.Context) (int, []byte)
- func GetPackagePageV1Handler(ctx *macaron.Context) (int, []byte)
- func GetPackageRESTV1Hanfdler(ctx *macaron.Context) (int, []byte)
- func GetPingV1Handler(ctx *macaron.Context) (int, []byte)
- func GetPingV2Handler(ctx *macaron.Context) (int, []byte)
- func GetRepositoryImagesV1Handler(ctx *macaron.Context) (int, []byte)
- func GetRepositoryPageV1Handler(ctx *macaron.Context) (int, []byte)
- func GetRepositoryRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func GetTagV1Handler(ctx *macaron.Context) (int, []byte)
- func GetTagsListV2Handler(ctx *macaron.Context) (int, []byte)
- func GetTagsListV2LibraryHandler(ctx *macaron.Context) (int, []byte)
- func GetUsersV1Handler(ctx *macaron.Context) (int, []byte)
- func HeadBlobsV2Handler(ctx *macaron.Context) (int, []byte)
- func ImageDeleteFileV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageDiscoveryV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageGetFileV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageGetListV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageGetManifestsV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageGlobalSearchV1Handler(ctx *macaron.Context) (int, []byte)
- func ImagePatchFileV1Handler(ctx *macaron.Context) (int, []byte)
- func ImagePostV1Handler(ctx *macaron.Context) (int, []byte)
- func ImagePutFileV1Handler(ctx *macaron.Context) (int, []byte)
- func ImagePutManifestV1Handler(ctx *macaron.Context) (int, []byte)
- func ImageScopedSearchV1Handler(ctx *macaron.Context) (int, []byte)
- func PatchBlobsV2Handler(ctx *macaron.Context) (int, []byte)
- func PostBlobsV2Handler(ctx *macaron.Context) (int, []byte)
- func PostManifestRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PostPackageRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PostRepositoryRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PostUsersV1Handler(ctx *macaron.Context) (int, []byte)
- func PutBlobsV2Handler(ctx *macaron.Context) (int, []byte)
- func PutImageChecksumV1Handler(ctx *macaron.Context) (int, []byte)
- func PutImageJSONV1Handler(ctx *macaron.Context) (int, []byte)
- func PutImageLayerV1Handler(ctx *macaron.Context) (int, []byte)
- func PutManifestRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PutManifestsV2Handler(ctx *macaron.Context) (int, []byte)
- func PutPackageRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PutRepositoryImagesV1Handler(ctx *macaron.Context) (int, []byte)
- func PutRepositoryRESTV1Handler(ctx *macaron.Context) (int, []byte)
- func PutRepositoryV1Handler(ctx *macaron.Context) (int, []byte)
- func PutTagV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncGetPingV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncMasterDeleteRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncMasterPostRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncMasterPutModeRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlaveDeleteRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlaveListDataV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePostRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePutFileV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePutManifestsV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePutModeRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePutRegistryV1Handler(ctx *macaron.Context) (int, []byte)
- func SyncSlavePutStatusV1Handler(ctx *macaron.Context) (int, []byte)
- type AppcPUTDetails
- type CompleteMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminGetConfigV1Handler ¶
func AdminGetStatusV1Handler ¶
func AdminPostMaintenance ¶
func AdminSetConfigV1Handler ¶
func AppActiveScanHooksTaskV1Handler ¶
AppActiveScanHooksTaskV1Handler actives a scan task
func AppCallbackScanHooksV1Handler ¶
AppCallbackScanHooksV1Handler gets callback from container and save the scan result.
func AppDeleteFileV1Handler ¶
AppDeleteFileV1Handler remove a file from a repo
func AppDiscoveryV1Handler ¶
func AppGetFileV1Handler ¶
AppGetFileV1Handler gets the data of a certain app
func AppGetListAppV1Handler ¶
AppGetListAppV1Handler lists all the files in the namespace/repository
func AppGetMetaSignV1Handler ¶
AppGetMetaSignV1Handler gets the meta signature data
func AppGetMetaV1Handler ¶
AppGetMetaV1Handler gets the meta data of the whole namespace/repository
func AppGetPublicKeyV1Handler ¶
AppGetPublicKeyV1Handler gets the public key of the namespace/repository
func AppGlobalSearchV1Handler ¶
Example: curl https://containerops.me/app/v1/search?namespace=genedna&repository=tidb
func AppPatchFileV1Handler ¶
func AppPostFileV1Handler ¶
func AppPutFileV1Handler ¶
AppPutFileV1Handler creates or updates a certain app
func AppPutManifestV1Handler ¶
func AppRegistScanHooksV1Handler ¶
AppRegistScanHooksV1Handler adds a scan plugin to a user repo TODO: to make it easier as a start, we assume each repo could only have one scan plugin
func AppScopedSearchV1Handler ¶
Example: curl https://containerops.me/app/v1/genedna/tidb/search?version=beta
func AppcDiscoveryV1Handler ¶
AppcDiscoveryV1Handler is
func AppcPostACIV1Handler ¶
AppcPostACIV1Handler is
func AppcPostCompleteV1Handler ¶
AppcPostCompleteV1Handler is
func AppcPutACIV1Handler ¶
AppcPutACIV1Handler is
func AppcPutASCV1Handler ¶
AppcPutASCV1Handler is
func AppcPutManifestV1Handler ¶
AppcPutManifestV1Handler is
func DeleteBlobsUUUIDV2Handler ¶
DeleteBlobsUUUIDV2Handler is
func DeleteBlobsV2Handler ¶
DeleteBlobsV2Handler is
func DeleteManifestRESTV1Handler ¶
DeleteManifestRESTV1Handler is
func DeleteManifestsV2Handler ¶
DeleteManifestsV2Handler is
func DeletePacakgeRESTV1Handler ¶
DeletePacakgeRESTV1Handler is
func DeleteRepositoryRESTV1Handler ¶
DeleteRepositoryRESTV1Handler is
func GetBlobsV2LibraryHandler ¶
GetBlobsV2LibraryHandler is
func GetCatalogV2Handler ¶
GetCatalogV2Handler is
func GetGPGFileV1Handler ¶
GetGPGFileV1Handler is downloading `dockyard.sh`'s GPG file.
func GetImageAncestryV1Handler ¶
GetImageAncestryV1Handler
func GetImageJSONV1Handler ¶
GetImageJSONV1Handler is getting image json data function. When docker client push an image, dockyard return http status code '400' or '404' if haven't it. Then the docker client will push the json data and layer file. If dockyard has the image and return 200, the docker client will ignore it and push another iamge.
func GetImageLayerV1Handler ¶
func GetImageLayerV1Handler(ctx *macaron.Context)
GetImageLayerV1Handler
func GetIndexPageV1Handler ¶
func GetIndexPageV1Handler(ctx *macaron.Context)
GetIndexPageV1Handler is the index page of Dockyard web. When with params `/?ac-discovery=1` means access from `rkt trust --prefix={domain}` possibility. Other access maybe come from web browser, and will generate HTML page then return.
func GetManifestPageV1Handler ¶
GetManifestPageV1Handler is the manifest of package page. Docker V1 -> none Docker V2 -> tag manifest Appc -> appc manifest App -> manifest
func GetManifestRESTV1Handler ¶
GetManifestRESTV1Handler is
func GetManifestsV2Handler ¶
GetManifestsV2Handler is
func GetManifestsV2LibraryHandler ¶
GetManifestsV2LibraryHandler is
func GetNamespacePageV1Handler ¶
GetNamespacePageV1Handler is the namespace page for all types.
func GetPackagePageV1Handler ¶
GetPackagePageV1Handler is the package page. Docker V1 & V2 -> tag Appc -> {name}-{version}-{os}-{arch}.{ext} App -> {name}
func GetPackageRESTV1Hanfdler ¶
GetPackageRESTV1Hanfdler is
func GetPingV1Handler ¶
GetPingV1Handler returns http.StatusOK(200) when Dockyard provide the Docker Registry V1 support. TODO: Add a config option for provide Docker Registry V1.
func GetPingV2Handler ¶
GetPingV2Handler is https://github.com/docker/distribution/blob/master/docs/spec/api.md#api-version-check
func GetRepositoryImagesV1Handler ¶
GetRepositoryImagesV1Handler will return images json data.
func GetRepositoryPageV1Handler ¶
GetRepositoryPageV1Handler is the repository page.
func GetRepositoryRESTV1Handler ¶
GetRepositoryRESTV1Handler is
func GetTagsListV2Handler ¶
GetTagsListV2Handler is
func GetTagsListV2LibraryHandler ¶
GetTagsListV2LibraryHandler is
func GetUsersV1Handler ¶
GetUsersV1Handler is Docker client login handler functoin, should be integration with [Crew](https://gitub.com/containerops/crew) project. TODO: Integration with Crew project.
func HeadBlobsV2Handler ¶
HeadBlobsV2Handler is
func ImageDiscoveryV1Handler ¶
func ImageGetFileV1Handler ¶
func ImageGetListV1Handler ¶
func ImageGlobalSearchV1Handler ¶
Global search virtual image, not include private image.
func ImagePatchFileV1Handler ¶
func ImagePostV1Handler ¶
func ImagePutFileV1Handler ¶
func PatchBlobsV2Handler ¶
PatchBlobsV2Handler is Upload a chunk of data for the specified upload. Docker 1.9.x above version saves layer in PATCH methord Docker 1.9.x below version saves layer in PUT methord
func PostBlobsV2Handler ¶
PostBlobsV2Handler is Initiate a resumable blob upload. If successful, an upload location will be provided to complete the upload. Optionally, if the digest parameter is present, the request body will be used to complete the upload in a single request.
func PostManifestRESTV1Handler ¶
PostManifestRESTV1Handler is
func PostPackageRESTV1Handler ¶
PostPackageRESTV1Handler is
func PostRepositoryRESTV1Handler ¶
PostRepositoryRESTV1Handler is REST API handler function for create repository from web page.
func PostUsersV1Handler ¶
PostUsersV1Handler In Docker Registry V1, the Docker client will POST /v1/users to create an user. If the Dockyard allow create user in the CLI, should be integration with [Crew](https://github.com/containerops/crew). If don't, Dockyard returns http.StatusUnauthorized(401) for forbidden. TODO: Add a config option for allow/forbidden create user in the CLI, and integrated with [Crew](https://github.com/containerops/crew).
func PutBlobsV2Handler ¶
PutBlobsV2Handler is Complete the upload specified by uuid, optionally appending the body as the final chunk.
func PutImageChecksumV1Handler ¶
PutImageChecksumV1Handler is put image checksum and payload value in the database.
func PutImageJSONV1Handler ¶
PutImageJSONV1Handler is
func PutImageLayerV1Handler ¶
PutImageLayerV1Handler is save image layer file in the server.
func PutManifestRESTV1Handler ¶
PutManifestRESTV1Handler is
func PutManifestsV2Handler ¶
PutManifestsV2Handler is
func PutPackageRESTV1Handler ¶
PutPackageRESTV1Handler is
func PutRepositoryImagesV1Handler ¶
PutRepositoryImagesV1Handler
func PutRepositoryRESTV1Handler ¶
PutRepositoryRESTV1Handler is
func PutRepositoryV1Handler ¶
PutRepositoryV1Handler will create or update the repository, it's first step of Docker push. TODO: @1 When someone create or update the repository, it will be locked to forbidden others action include pull action. TODO: @2 Add a config option for allow/forbidden Docker client pull action when a repository is locked. TODO: @3 Intergated with [Crew](https://github.com/containerops/crew). TODO: @4 Token will be store in Redis, and link the push action with username@repository.
func SyncGetPingV1Handler ¶
If server status is OK, return HTTP Code 200.
func SyncMasterDeleteRegistryV1Handler ¶
Delete the slave instance from master.
func SyncMasterPostRegistryV1Handler ¶
Receive the slave instance information for registry.
func SyncSlaveDeleteRegistryV1Handler ¶
Delete master in the slave instance.
func SyncSlaveListDataV1Handler ¶
Get the list of data from slave
func SyncSlavePostRegistryV1Handler ¶
Add master information in the slave instance, and slave instance will registry itself to the master instance.
func SyncSlavePutModeRegistryV1Handler ¶
Change the instance mode from slave to master.
func SyncSlavePutRegistryV1Handler ¶
Change master in the slave instance.
Types ¶
type AppcPUTDetails ¶
type AppcPUTDetails struct { ACIPushVersion string `json:"aci_push_version"` Multipart bool `json:"multipart"` ManifestURL string `json:"upload_manifest_url"` SignatureURL string `json:"upload_signature_url"` ACIURL string `json:"upload_aci_url"` CompletedURL string `json:"completed_url"` }
AppcPUTDetails is
type CompleteMsg ¶
type CompleteMsg struct { Success bool `json:"success"` Reason string `json:"reason,omitempty"` ServerReason string `json:"serverreason,omitempty"` }
CompleteMsg is