github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/test/testdata/cue_testdata/mongod.cue (about)

     1  //Copyright (C) 2022-2023 ApeCloud Co., Ltd
     2  //
     3  //This file is part of KubeBlocks project
     4  //
     5  //This program is free software: you can redistribute it and/or modify
     6  //it under the terms of the GNU Affero General Public License as published by
     7  //the Free Software Foundation, either version 3 of the License, or
     8  //(at your option) any later version.
     9  //
    10  //This program is distributed in the hope that it will be useful
    11  //but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  //GNU Affero General Public License for more details.
    14  //
    15  //You should have received a copy of the GNU Affero General Public License
    16  //along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17  
    18  #MongodParameter: {
    19  	net: {
    20  		port: int & >=0 & <=65535
    21  
    22  		unixDomainSocket: {
    23  			// Enables Unix Domain Sockets used for all network connections
    24  			enabled:    bool | *false
    25  			pathPrefix: string
    26  			...
    27  		}
    28  		tls: {
    29  			// Enables TLS used for all network connections
    30  			mode: string & "disabled" | "allowTLS" | "preferTLS" | "requireTLS"
    31  
    32  			certificateKeyFile: string
    33  			CAFile:             string
    34  			CRLFile:            string
    35  			...
    36  		}
    37  		...
    38  	}
    39  	tls: {
    40  		// Enables TLS used for all network connections
    41  		mode: string & "disabled" | "allowTLS" | "preferTLS" | "requireTLS"
    42  
    43  		certificateKeyFile: string
    44  		CAFile:             string
    45  		CRLFile:            string
    46  		...
    47  	}
    48  
    49  	...
    50  }
    51  
    52  // configuration require
    53  configuration: #MongodParameter & {
    54  }