github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_repository.go (about)

     1  /*
     2   * Testkube API
     3   *
     4   * Testkube provides a Kubernetes-native framework for test definition, execution and results
     5   *
     6   * API version: 1.0.0
     7   * Contact: testkube@kubeshop.io
     8   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     9   */
    10  package testkube
    11  
    12  // repository representation for tests in git repositories
    13  type Repository struct {
    14  	// VCS repository type
    15  	Type_ string `json:"type"`
    16  	// uri of content file or git directory
    17  	Uri string `json:"uri"`
    18  	// branch/tag name for checkout
    19  	Branch string `json:"branch,omitempty"`
    20  	// commit id (sha) for checkout
    21  	Commit string `json:"commit,omitempty"`
    22  	// if needed we can checkout particular path (dir or file) in case of BIG/mono repositories
    23  	Path string `json:"path,omitempty"`
    24  	// git auth username for private repositories
    25  	Username string `json:"username,omitempty"`
    26  	// git auth token for private repositories
    27  	Token          string     `json:"token,omitempty"`
    28  	UsernameSecret *SecretRef `json:"usernameSecret,omitempty"`
    29  	TokenSecret    *SecretRef `json:"tokenSecret,omitempty"`
    30  	// secret with certificate for private repositories. Should contain one key ending with .crt such as \"mycorp.crt\", whose value is the certificate file content, suitable for git config http.sslCAInfo
    31  	CertificateSecret string `json:"certificateSecret,omitempty"`
    32  	// if provided we checkout the whole repository and run test from this directory
    33  	WorkingDir string `json:"workingDir,omitempty"`
    34  	// auth type for git requests
    35  	AuthType string `json:"authType,omitempty"`
    36  }