• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / blob-csi-driver / 7412225870

04 Jan 2024 04:35PM UTC coverage: 77.871%. Remained the same
7412225870

Pull #1209

github

web-flow
chore(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0

Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.5.0 to 0.6.0.
- [Commits](https://github.com/golang/sync/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1209: chore(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0

2034 of 2612 relevant lines covered (77.87%)

7.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/pkg/blob/identityserver.go
1
/*
2
Copyright 2017 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

17
package blob
18

19
import (
20
        "context"
21

22
        "google.golang.org/grpc/codes"
23
        "google.golang.org/grpc/status"
24

25
        "github.com/container-storage-interface/spec/lib/go/csi"
26
        "github.com/golang/protobuf/ptypes/wrappers"
27
)
28

29
// GetPluginInfo return the version and name of the plugin
30
func (f *Driver) GetPluginInfo(_ context.Context, _ *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error) {
3✔
31
        if f.Name == "" {
4✔
32
                return nil, status.Error(codes.Unavailable, "Driver name not configured")
1✔
33
        }
1✔
34

35
        if f.Version == "" {
3✔
36
                return nil, status.Error(codes.Unavailable, "Driver is missing version")
1✔
37
        }
1✔
38

39
        return &csi.GetPluginInfoResponse{
1✔
40
                Name:          f.Name,
1✔
41
                VendorVersion: f.Version,
1✔
42
        }, nil
1✔
43
}
44

45
// Probe check whether the plugin is running or not.
46
// This method does not need to return anything.
47
// Currently the spec does not dictate what you should return either.
48
// Hence, return an empty response
49
func (f *Driver) Probe(_ context.Context, _ *csi.ProbeRequest) (*csi.ProbeResponse, error) {
1✔
50
        return &csi.ProbeResponse{Ready: &wrappers.BoolValue{Value: true}}, nil
1✔
51
}
1✔
52

53
// GetPluginCapabilities returns the capabilities of the plugin
54
func (f *Driver) GetPluginCapabilities(_ context.Context, _ *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error) {
1✔
55
        return &csi.GetPluginCapabilitiesResponse{
1✔
56
                Capabilities: []*csi.PluginCapability{
1✔
57
                        {
1✔
58
                                Type: &csi.PluginCapability_Service_{
1✔
59
                                        Service: &csi.PluginCapability_Service{
1✔
60
                                                Type: csi.PluginCapability_Service_CONTROLLER_SERVICE,
1✔
61
                                        },
1✔
62
                                },
1✔
63
                        },
1✔
64
                },
1✔
65
        }, nil
1✔
66
}
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc