Documentation ¶
Index ¶
- Constants
- Variables
- func RemoveRcFile()
- type CESType
- type ConnectCredentials
- type RcFile
- func (rc *RcFile) Exists() bool
- func (rc *RcFile) Load() (creds *ConnectCredentials, err error)
- func (rc *RcFile) Save() (err error)
- func (rc *RcFile) UpdateCESType(cesType CESType)
- func (rc *RcFile) UpdateCreds(server string, repo string, token string) error
- func (rc *RcFile) UpdateSCMPortalType(scmPortalType SCMPortalType)
- type SCMPortalType
- type Token
Constants ¶
View Source
const ( SCMPortalTypeGitHub SCMPortalType = "github" SCMPortalTypeGitLab SCMPortalType = "gitlab" CESTypeGitHubRunner CESType = "github_runner" CESTypeGitLabRunner CESType = "gitlab_runner" CESTypeJenkinsPipeline CESType = "jenkins_pipeline" CESTypeLoMa CESType = "locally_manually" )
Variables ¶
View Source
var ( ErrRcFileNotExists = fmt.Errorf("rc file does not exist. please connect first") ErrNotInGitIgnore = fmt.Errorf("warn: please add %s to your %s or secrets may be exposed", rcFileName, ignoreFileName) )
Functions ¶
func RemoveRcFile ¶
func RemoveRcFile()
Types ¶
type ConnectCredentials ¶
type RcFile ¶
type RcFile struct { ConnectCreds ConnectCredentials CESType CESType SCMPortalType SCMPortalType }
func NewRcInstance ¶
func NewRcInstance() *RcFile
func (*RcFile) Load ¶
func (rc *RcFile) Load() (creds *ConnectCredentials, err error)
func (*RcFile) UpdateCESType ¶
func (*RcFile) UpdateCreds ¶
func (*RcFile) UpdateSCMPortalType ¶
func (rc *RcFile) UpdateSCMPortalType(scmPortalType SCMPortalType)
type SCMPortalType ¶
type SCMPortalType string
Click to show internal directories.
Click to hide internal directories.