github.com/jmrodri/operator-sdk@v0.5.0/pkg/scaffold/constants.go (about)

     1  // Copyright 2018 The Operator-SDK Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package scaffold
    16  
    17  import (
    18  	"path/filepath"
    19  )
    20  
    21  const (
    22  	// Separator to statically create directories.
    23  	filePathSep = string(filepath.Separator)
    24  
    25  	// dirs
    26  	CmdDir         = "cmd"
    27  	ManagerDir     = CmdDir + filePathSep + "manager"
    28  	PkgDir         = "pkg"
    29  	ApisDir        = PkgDir + filePathSep + "apis"
    30  	ControllerDir  = PkgDir + filePathSep + "controller"
    31  	BuildDir       = "build"
    32  	BuildTestDir   = BuildDir + filePathSep + "test-framework"
    33  	BuildBinDir    = BuildDir + filePathSep + "_output" + filePathSep + "bin"
    34  	BuildScriptDir = BuildDir + filePathSep + "bin"
    35  	DeployDir      = "deploy"
    36  	OLMCatalogDir  = DeployDir + filePathSep + "olm-catalog"
    37  	CRDsDir        = DeployDir + filePathSep + "crds"
    38  	VersionDir     = "version"
    39  )