apimachinery: kubedb.dev/apimachinery/apis/config/v1alpha1 Index | Files

package v1alpha1

import "kubedb.dev/apimachinery/apis/config/v1alpha1"

+groupName=config.kubedb.com

Copyright The KubeDB 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 The KubeDB 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.

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:
	kubedb.dev/apimachinery/apis/config/v1alpha1/generated.proto

It has these top-level messages:
	GaleraArbitratorConfiguration
	MongoDBConfiguration

Copyright The KubeDB 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 The KubeDB 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

Package Files

doc.go galera_arbitrator_config_helper.go galera_arbitrator_config_types.go generated.pb.go mongodb_config_types.go openapi_generated.go register.go zz_generated.deepcopy.go

Constants

const (
    // GarbdListenPort is the port at which Galera Arbitrator Daemon (garbd) listen
    GarbdListenPort = 4444

    // GarbdXtrabackupSSTMethod is the name of the method or script that is
    // used during a State Snapshot Transfer to Galera Arbitrator Daemon (garbd).
    GarbdXtrabackupSSTMethod = "xtrabackup-v2"

    // GarbdXtrabackupSSTRequestSuffix denotes the suffix of sst request string for xtrabackup
    // used by Galera Arbitrator Daemon (garbd)
    GarbdXtrabackupSSTRequestSuffix = "/xtrabackup_sst//1"
    // GarbdLogFile is the name log file at which Galera Arbitrator Daemon (garbd) puts logs
    GarbdLogFile = "/tmp/garb.log"

    // SOCAT is needed after completing sst by Galera Arbitrator Daemon (garbd)
    // SOCATOptionReUseAddr is the SOCAT reuseaddr option
    SOCATOptionReUseAddr = "reuseaddr"
    // SOCATOptionRetry is the default retry value for `socat` binary
    SOCATOptionRetry = 30
)
const (
    // Resource Kind for GaleraArbitratorConfiguration
    ResourceKindGaleraArbitratorConfiguration = "GaleraArbitratorConfiguration"
)
const (
    ResourceKindMongoConfiguration = "MongoConfiguration"
)

Variables

var (
    ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
var (
    // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
    // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
    SchemeBuilder runtime.SchemeBuilder

    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: config.GroupName, Version: "v1alpha1"}

func GetOpenAPIDefinitions Uses

func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SOCATOption Uses

func SOCATOption(retry int32) string

SOCATOption returns the option string used for `SOCAT` in the percona xtradb backup process

type GaleraArbitratorConfiguration Uses

type GaleraArbitratorConfiguration struct {
    metav1.TypeMeta `json:",inline,omitempty"`

    // Address denotes the logical name of the galera cluster. It is
    // used as the value of the variable named "wsrep_cluster_name"
    // in the replication configuration for galera
    // Ref: https://galeracluster.com/library/documentation/mysql-wsrep-options.html#wsrep-cluster-name
    Address string `json:"address,omitempty" protobuf:"bytes,1,opt,name=address"`

    // Group denotes the collection of cluster members by IP address
    // or resolvable domain name. This address is used as the value of the
    // variable named "wsrep_cluster_address" in the replication configuration
    // for galera. It must be in galera format.
    // Ref: https://galeracluster.com/library/documentation/mysql-wsrep-options.html#wsrep-cluster-address
    Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`

    // SSTMethod denotes the method or script the node uses during a State Snapshot Transfer.
    // This method is needed to form the SST request string that contains SST request to
    // trigger state snapshot dump (state backup) on one of the other nodes.
    // Ref: https://galeracluster.com/library/documentation/mysql-wsrep-options.html#wsrep-sst-method
    SSTMethod string `json:"sstMethod,omitempty" protobuf:"bytes,3,opt,name=sstMethod"`
}

GaleraArbitratorConfiguration defines Galera ARBitrator Daemon (garbd) configuration. Ref: https://galeracluster.com/library/documentation/arbitrator.html

https://galeracluster.com/library/documentation/backup-cluster.html

func (*GaleraArbitratorConfiguration) ClusterAddressWithListenOption Uses

func (g *GaleraArbitratorConfiguration) ClusterAddressWithListenOption() string

ClusterAddressWithListenOption method returns the galera cluster address with the listening option (address at which Galera Cluster listens to connections from other nodes) for `--address` option in `garbd` Here, ‘?gmcast.listen_addr=tcp://0.0.0.0:4444‘ is an arbitrary listen socket address that Galera Arbitrator opens to communicate with the cluster. https://galeracluster.com/library/documentation/backup-cluster.html

func (*GaleraArbitratorConfiguration) DeepCopy Uses

func (in *GaleraArbitratorConfiguration) DeepCopy() *GaleraArbitratorConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GaleraArbitratorConfiguration.

func (*GaleraArbitratorConfiguration) DeepCopyInto Uses

func (in *GaleraArbitratorConfiguration) DeepCopyInto(out *GaleraArbitratorConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GaleraArbitratorConfiguration) DeepCopyObject Uses

func (in *GaleraArbitratorConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GaleraArbitratorConfiguration) Descriptor Uses

func (*GaleraArbitratorConfiguration) Descriptor() ([]byte, []int)

func (*GaleraArbitratorConfiguration) Marshal Uses

func (m *GaleraArbitratorConfiguration) Marshal() (dAtA []byte, err error)

func (*GaleraArbitratorConfiguration) MarshalTo Uses

func (m *GaleraArbitratorConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*GaleraArbitratorConfiguration) ProtoMessage Uses

func (*GaleraArbitratorConfiguration) ProtoMessage()

func (*GaleraArbitratorConfiguration) Reset Uses

func (m *GaleraArbitratorConfiguration) Reset()

func (*GaleraArbitratorConfiguration) SSTRequestString Uses

func (g *GaleraArbitratorConfiguration) SSTRequestString(host string) string

SSTRequestString method form the sst request string for `--sst` option in `garbd`

func (*GaleraArbitratorConfiguration) Size Uses

func (m *GaleraArbitratorConfiguration) Size() (n int)

func (*GaleraArbitratorConfiguration) String Uses

func (this *GaleraArbitratorConfiguration) String() string

func (*GaleraArbitratorConfiguration) Unmarshal Uses

func (m *GaleraArbitratorConfiguration) Unmarshal(dAtA []byte) error

type MongoDBConfiguration Uses

type MongoDBConfiguration struct {
    metav1.TypeMeta `json:",inline,omitempty"`

    // ConfigServer is the dsn of config server of mongodb sharding. The dsn includes the port no too.
    ConfigServer string `json:"configServer,omitempty" protobuf:"bytes,1,opt,name=configServer"`

    // ReplicaSets contains the dsn of each replicaset of sharding. The DSNs are in key-value pair, where
    // the keys are host-0, host-1 etc, and the values are DSN of each replicaset. If there is no sharding
    // but only one replicaset, then ReplicaSets field contains only one key-value pair where the key is
    // host-0 and the value is dsn of that replicaset.
    ReplicaSets map[string]string `json:"replicaSets,omitempty" protobuf:"bytes,2,rep,name=replicaSets"`
}

MongoDBConfiguration defines a MongoDB app configuration. https://www.vaultproject.io/api/secret/databases/index.html https://www.vaultproject.io/api/secret/databases/mongodb.html#configure-connection

func (*MongoDBConfiguration) DeepCopy Uses

func (in *MongoDBConfiguration) DeepCopy() *MongoDBConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConfiguration.

func (*MongoDBConfiguration) DeepCopyInto Uses

func (in *MongoDBConfiguration) DeepCopyInto(out *MongoDBConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MongoDBConfiguration) DeepCopyObject Uses

func (in *MongoDBConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MongoDBConfiguration) Descriptor Uses

func (*MongoDBConfiguration) Descriptor() ([]byte, []int)

func (*MongoDBConfiguration) Marshal Uses

func (m *MongoDBConfiguration) Marshal() (dAtA []byte, err error)

func (*MongoDBConfiguration) MarshalTo Uses

func (m *MongoDBConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*MongoDBConfiguration) ProtoMessage Uses

func (*MongoDBConfiguration) ProtoMessage()

func (*MongoDBConfiguration) Reset Uses

func (m *MongoDBConfiguration) Reset()

func (*MongoDBConfiguration) Size Uses

func (m *MongoDBConfiguration) Size() (n int)

func (*MongoDBConfiguration) String Uses

func (this *MongoDBConfiguration) String() string

func (*MongoDBConfiguration) Unmarshal Uses

func (m *MongoDBConfiguration) Unmarshal(dAtA []byte) error

Package v1alpha1 imports 16 packages (graph) and is imported by 8 packages. Updated 2019-11-15. Refresh now. Tools for package owners.