github.com/oam-dev/kubevela@v1.9.11/pkg/utils/helm/types.go (about)

     1  /*
     2  Copyright 2023 The KubeVela Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8  	http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package helm
    18  
    19  // RepoCredential is the helm repo credential
    20  type RepoCredential struct {
    21  	// chart repository username
    22  	Username string `json:"username,omitempty"`
    23  	// chart repository password
    24  	Password string `json:"password,omitempty"`
    25  	// identify HTTPS client using this SSL certificate file
    26  	CertFile string `json:"certFile,omitempty"`
    27  	// identify HTTPS client using this SSL key file
    28  	KeyFile string `json:"keyFile,omitempty"`
    29  	// verify certificates of HTTPS-enabled servers using this CA bundle
    30  	CAFile string `json:"caFile,omitempty"`
    31  	// skip tls certificate checks for the repository, default is ture
    32  	InsecureSkipTLSVerify *bool `json:"insecureSkipTLSVerify,omitempty"`
    33  }
    34  
    35  // Repository is the helm repository
    36  type Repository struct {
    37  	URL      string `json:"url"`
    38  	Username string `json:"username"`
    39  	Password string `json:"password"`
    40  	CAFile   string `json:"caFile"`
    41  }