Documentation ¶
Overview ¶
Copyright 2021 The hostpath provisioner Authors.
Licensed 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.
Copyright 2021 The hostpath provisioner Authors.
Licensed 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.
Copyright 2021 The hostpath provisioner Authors.
Licensed 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.
Index ¶
- Constants
- func CreateVolume(base, volID string) error
- func DeleteVolume(base, volID string) error
- func IndexOfStartingToken(value string, list []string) int
- func NewHostPathController(config *Config) *hostPathController
- func NewHostPathDriver(ctx context.Context, cfg *Config, dataDir string) (*hostPath, error)
- func NewHostPathIdentity(config *Config) *hostPathIdentity
- func NewHostPathNode(config *Config) *hostPathNode
- func NewNonBlockingGRPCServer() *nonBlockingGRPCServer
- func RunPrometheusServer(metricsAddr string)
- type Config
- type FileSystems
- type MountPointInfo
- type StoragePoolInfo
Constants ¶
const (
TopologyKeyNode = "topology.hostpath.csi/node"
)
Variables ¶
This section is empty.
Functions ¶
func CreateVolume ¶
CreateVolume allocates creates the directory for the hostpath volume
It returns the err if one occurs. That error is suitable as result of a gRPC call.
func DeleteVolume ¶
DeleteVolume deletes the directory for the hostpath volume.
func IndexOfStartingToken ¶ added in v0.11.0
IndexOfStartingToken returns the index of a matching string, or -1 if not found
func NewHostPathController ¶
func NewHostPathController(config *Config) *hostPathController
func NewHostPathDriver ¶
func NewHostPathIdentity ¶
func NewHostPathIdentity(config *Config) *hostPathIdentity
func NewHostPathNode ¶
func NewHostPathNode(config *Config) *hostPathNode
func NewNonBlockingGRPCServer ¶
func NewNonBlockingGRPCServer() *nonBlockingGRPCServer
func RunPrometheusServer ¶ added in v0.13.0
func RunPrometheusServer(metricsAddr string)
RunPrometheusServer runs a prometheus server for metrics
Types ¶
type FileSystems ¶
type FileSystems struct {
Filsystem []MountPointInfo `json:"filesystems"`
}
type MountPointInfo ¶
type StoragePoolInfo ¶ added in v0.11.0
StoragePoolInfo contains the name and path of a storage pool.