Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit a686347

Browse files
committed
COSI Api definitions
1 parent 6ea19ad commit a686347

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5140
-733
lines changed

Diff for: apis/objectstorage.k8s.io/v1alpha1/azure_types.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
// +k8s:deepcopy-gen=false
218

319
package v1alpha1

Diff for: apis/objectstorage.k8s.io/v1alpha1/doc.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
// +k8s:deepcopy-gen=package,register
218
// +groupName=objectstorage.k8s.io
319
// +k8s:protobuf-gen=package

Diff for: apis/objectstorage.k8s.io/v1alpha1/gcs_types.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
// +k8s:deepcopy-gen=false
218

319
package v1alpha1

Diff for: apis/objectstorage.k8s.io/v1alpha1/openapi_generated.go

+94-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: apis/objectstorage.k8s.io/v1alpha1/protocol_types.go

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package v1alpha1
218

319
type ProtocolName string
@@ -12,7 +28,7 @@ type RequestedProtocol struct {
1228
// +kubebuilder:validation:Enum:={s3,azureBlob,gcs}
1329
Name ProtocolName `json:"name"`
1430
// +optional
15-
Version string `json:"version"`
31+
Version string `json:"version,omitempty"`
1632
}
1733

1834
type Protocol struct {

Diff for: apis/objectstorage.k8s.io/v1alpha1/register.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package v1alpha1
218

319
import (

Diff for: apis/objectstorage.k8s.io/v1alpha1/s3_types.go

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
// +k8s:deepcopy-gen=false
218

319
package v1alpha1
420

521
type S3SignatureVersion string
622

723
const (
8-
S3SignatureVersionV2 = "s3v2"
9-
S3SignatureVersionV4 = "s3v4"
24+
S3SignatureVersionV2 S3SignatureVersion = "S3v2"
25+
S3SignatureVersionV4 S3SignatureVersion = "S3v4"
1026
)
1127

1228
type S3Protocol struct {

Diff for: apis/objectstorage.k8s.io/v1alpha1/types.go

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1+
/*
2+
Copyright 2020 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package v1alpha1
218

319
import (
420
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
521
"k8s.io/apimachinery/pkg/types"
622
)
723

8-
type BucketRequestBinding struct {
9-
Name string `json:"name"`
10-
Namespace string `json:"namespace,omitempty"`
11-
}
12-
1324
type BucketRequestSpec struct {
1425
// +optional
1526
BucketInstanceName string `json:"bucketInstanceName,omitempty"`

0 commit comments

Comments
 (0)