Documentation ¶
Overview ¶
Copyright 2016 The Rook Authors. All rights reserved.
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.
Some of the code below came from https://github.com/coreos/etcd-operator which also has the apache 2.0 license.
Copyright 2016 The Rook Authors. All rights reserved.
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.
Some of the code below came from https://github.com/coreos/etcd-operator which also has the apache 2.0 license.
Copyright 2016 The Rook Authors. All rights reserved.
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.
Some of the code below came from https://github.com/coreos/etcd-operator which also has the apache 2.0 license.
Copyright 2016 The Rook Authors. All rights reserved.
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.
Some of the code below came from https://github.com/coreos/etcd-operator which also has the apache 2.0 license.
Copyright 2016 The Rook Authors. All rights reserved.
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.
Some of the code below came from https://github.com/coreos/etcd-operator which also has the apache 2.0 license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { v1.ObjectMeta `json:"metadata,omitempty"` Spec `json:"spec"` // contains filtered or unexported fields }
func (*Cluster) CreateInstance ¶
func (*Cluster) GetRookClient ¶
func (c *Cluster) GetRookClient() (rookclient.RookRestClient, error)
func (*Cluster) UnmarshalJSON ¶
type ClusterCopy ¶
type ClusterCopy Cluster
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata Metadata metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of third party objects Items []Cluster `json:"items"` }
ClusterList is a list of rook clusters.
func (*ClusterList) UnmarshalJSON ¶
func (cl *ClusterList) UnmarshalJSON(data []byte) error
type ClusterListCopy ¶
type ClusterListCopy ClusterList
type ErasureCodeSpec ¶
type ErasureCodeSpec struct { // Number of coding chunks per object in an erasure coded storage pool (required for erasure-coded pool type) CodingChunks uint `json:"codingChunks"` // Number of data chunks per object in an erasure coded storage pool (required for erasure-coded pool type) DataChunks uint `json:"dataChunks"` }
type Pool ¶
type Pool struct { v1.ObjectMeta `json:"metadata,omitempty"` PoolSpec `json:"spec"` }
func (*Pool) Create ¶
func (p *Pool) Create(rclient rookclient.RookRestClient) error
Create the pool
func (*Pool) Delete ¶
func (p *Pool) Delete(rclient rookclient.RookRestClient) error
Delete the pool
func (*Pool) UnmarshalJSON ¶
type PoolList ¶
type PoolList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata Metadata metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of third party objects Items []Pool `json:"items"` }
PoolList is a list of rook pools from the TPR.
func (*PoolList) UnmarshalJSON ¶
type PoolListCopy ¶
type PoolListCopy PoolList
type PoolSpec ¶
type PoolSpec struct { // The replication settings Replication ReplicationSpec `json:"replication"` // The erasure code setteings ErasureCoding ErasureCodeSpec `json:"erasureCode"` }
type ReplicationSpec ¶
type ReplicationSpec struct { // Number of copies per object in a replicated storage pool, including the object itself (required for replicated pool type) Size uint `json:"size"` }
type Spec ¶
type Spec struct { // VersionTag is the expected version of the rook container to run in the cluster. // The operator will eventually make the rook cluster version // equal to the expected version. VersionTag string `json:"versionTag"` // Paused is to pause the control of the operator for the rook cluster. Paused bool `json:"paused,omitempty"` // The path on the host where config and data can be persisted. DataDirHostPath string `json:"dataDirHostPath"` // A spec for available storage in the cluster and how it should be used Storage osd.StorageSpec `json:"storage"` }