Skip to content

Commit

Permalink
fix(cdn): change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kumfo committed Jul 19, 2024
1 parent 2a39829 commit 7f48f21
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion cdn-aliyunoss/README.md → cdn-aliyun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

### Build
```bash
./answer build --with github.com/apache/incubator-answer-plugins/cdn-aliyunoss
./answer build --with github.com/apache/incubator-answer-plugins/cdn-aliyun
```

### Configuration
Expand Down
4 changes: 2 additions & 2 deletions cdn-aliyunoss/aliyunoss.go → cdn-aliyun/aliyunoss.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* under the License.
*/

package aliyunoss
package aliyun

import (
"embed"
"encoding/json"
"github.com/aliyun/aliyun-oss-go-sdk/oss"
"github.com/apache/incubator-answer-plugins/cdn-aliyunoss/i18n"
"github.com/apache/incubator-answer-plugins/cdn-aliyun/i18n"
"github.com/apache/incubator-answer-plugins/util"
"github.com/apache/incubator-answer/plugin"
"github.com/apache/incubator-answer/ui"
Expand Down
2 changes: 1 addition & 1 deletion cdn-aliyunoss/go.mod → cdn-aliyun/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/apache/incubator-answer-plugins/cdn-aliyunoss
module github.com/apache/incubator-answer-plugins/cdn-aliyun

go 1.19

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

plugin:
aliyunoss_cdn:
aliyun_cdn:
backend:
info:
name:
Expand Down
45 changes: 45 additions & 0 deletions cdn-aliyun/i18n/translation.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package i18n

const (
InfoName = "plugin.aliyun_cdn.backend.info.name"
InfoDescription = "plugin.aliyun_cdn.backend.info.description"

ConfigEndpointTitle = "plugin.aliyun_cdn.backend.config.endpoint.title"
ConfigEndpointDescription = "plugin.aliyun_cdn.backend.config.endpoint.description"
ConfigBucketNameTitle = "plugin.aliyun_cdn.backend.config.bucket_name.title"
ConfigBucketNameDescription = "plugin.aliyun_cdn.backend.config.bucket_name.description"
ConfigObjectKeyPrefixTitle = "plugin.aliyun_cdn.backend.config.object_key_prefix.title"
ConfigObjectKeyPrefixDescription = "plugin.aliyun_cdn.backend.config.object_key_prefix.description"
ConfigAccessKeyIdTitle = "plugin.aliyun_cdn.backend.config.access_key_id.title"
ConfigAccessKeyIdDescription = "plugin.aliyun_cdn.backend.config.access_key_id.description"
ConfigAccessKeySecretTitle = "plugin.aliyun_cdn.backend.config.access_key_secret.title"
ConfigAccessKeySecretDescription = "plugin.aliyun_cdn.backend.config.access_key_secret.description"
ConfigVisitUrlPrefixTitle = "plugin.aliyun_cdn.backend.config.visit_url_prefix.title"
ConfigVisitUrlPrefixDescription = "plugin.aliyun_cdn.backend.config.visit_url_prefix.description"
ConfigMaxFileSizeTitle = "plugin.aliyun_cdn.backend.config.max_file_size.title"
ConfigMaxFileSizeDescription = "plugin.aliyun_cdn.backend.config.max_file_size.description"

ErrMisStorageConfig = "plugin.aliyun_cdn.backend.err.mis_storage_config"
ErrUnsupportedFileType = "plugin.aliyun_cdn.backend.err.unsupported_file_type"
ErrOverFileSizeLimit = "plugin.aliyun_cdn.backend.err.over_file_size_limit"
ErrUploadFileFailed = "plugin.aliyun_cdn.backend.err.upload_file_failed"
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

plugin:
aliyunoss_cdn:
aliyun_cdn:
backend:
info:
name:
Expand Down
4 changes: 2 additions & 2 deletions cdn-aliyunoss/info.yaml → cdn-aliyun/info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# specific language governing permissions and limitations
# under the License.

slug_name: aliyunoss_cdn
slug_name: aliyun_cdn
type: cdn
version: 1.0.0
author: answerdev
link: https://github.com/apache/incubator-answer-plugins/tree/main/cdn-aliyunoss
link: https://github.com/apache/incubator-answer-plugins/tree/main/cdn-aliyun
45 changes: 0 additions & 45 deletions cdn-aliyunoss/i18n/translation.go

This file was deleted.

0 comments on commit 7f48f21

Please sign in to comment.