Documentation
¶
Index ¶
- Variables
- type ACSIntegration
- type ArtifactoryIntegration
- type AzureIntegration
- type BitBucketIntegration
- type GitLabIntegration
- type GithubIntegration
- type JenkinsIntegration
- type NexusIntegration
- type QuayIntegration
- type TrustificationIntegration
- func (i *TrustificationIntegration) Create(ctx context.Context, cfg *config.Config) error
- func (i *TrustificationIntegration) EnsureNamespace(ctx context.Context, cfg *config.Config) error
- func (i *TrustificationIntegration) PersistentFlags(c *cobra.Command)
- func (i *TrustificationIntegration) Validate() error
Constants ¶
This section is empty.
Variables ¶
var ErrSecretAlreadyExists = fmt.Errorf("secret already exists")
ErrSecretAlreadyExists is returned when the integration secret already exists.
Functions ¶
This section is empty.
Types ¶
type ACSIntegration ¶
type ACSIntegration struct {
// contains filtered or unexported fields
}
ACSIntegration represents the TSSC ACS integration.
func NewACSIntegration ¶
func NewACSIntegration( logger *slog.Logger, kube *k8s.Kube, ) *ACSIntegration
func (*ACSIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the ACS integration secret is created on the cluster.
func (*ACSIntegration) PersistentFlags ¶
func (a *ACSIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the ACS integration.
func (*ACSIntegration) Validate ¶
func (a *ACSIntegration) Validate() error
Validate checks if the required configuration is set.
type ArtifactoryIntegration ¶
type ArtifactoryIntegration struct {
// contains filtered or unexported fields
}
ArtifactoryIntegration represents the TSSC Artifactory integration.
func NewArtifactoryIntegration ¶
func NewArtifactoryIntegration( logger *slog.Logger, kube *k8s.Kube, ) *ArtifactoryIntegration
func (*ArtifactoryIntegration) Create ¶
Create creates the Artifactory integration Kubernetes secret.
func (*ArtifactoryIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the Artifactory integration secret is created on the cluster.
func (*ArtifactoryIntegration) PersistentFlags ¶
func (a *ArtifactoryIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Artifactory integration.
func (*ArtifactoryIntegration) Validate ¶
func (a *ArtifactoryIntegration) Validate() error
Validate checks if the required configuration is set.
type AzureIntegration ¶
type AzureIntegration struct {
// contains filtered or unexported fields
}
AzureIntegration represents the TSSC Azure integration.
func NewAzureIntegration ¶
func NewAzureIntegration(logger *slog.Logger, kube *k8s.Kube) *AzureIntegration
func (*AzureIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the Azure integration secret is created on the cluster.
func (*AzureIntegration) PersistentFlags ¶
func (g *AzureIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Azure integration.
func (*AzureIntegration) Validate ¶
func (g *AzureIntegration) Validate() error
Validate checks if the required configuration is set.
type BitBucketIntegration ¶
type BitBucketIntegration struct {
// contains filtered or unexported fields
}
BitBucketIntegration represents the TSSC BitBucket integration.
func NewBitBucketIntegration ¶
func NewBitBucketIntegration( logger *slog.Logger, kube *k8s.Kube, ) *BitBucketIntegration
func (*BitBucketIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the BitBucket integration secret is created on the cluster.
func (*BitBucketIntegration) PersistentFlags ¶
func (g *BitBucketIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the BitBucket integration.
func (*BitBucketIntegration) Validate ¶
func (g *BitBucketIntegration) Validate() error
Validate checks if the required configuration is set.
type GitLabIntegration ¶
type GitLabIntegration struct {
// contains filtered or unexported fields
}
GitLabIntegration represents the TSSC GitLab integration.
func NewGitLabIntegration ¶
func NewGitLabIntegration( logger *slog.Logger, kube *k8s.Kube, ) *GitLabIntegration
func (*GitLabIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the GitLab integration secret is created on the cluster.
func (*GitLabIntegration) PersistentFlags ¶
func (g *GitLabIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the GitLab integration.
func (*GitLabIntegration) Validate ¶
func (g *GitLabIntegration) Validate() error
Validate checks if the required configuration is set.
type GithubIntegration ¶
type GithubIntegration struct {
// contains filtered or unexported fields
}
GithubIntegration represents the Developer Hub GitHub integration.
func NewGithubIntegration ¶
func (*GithubIntegration) Create ¶
Create creates the GitHub integration, creating the GitHub App and storing the whole application manifest on the cluster, in a Kubernetes secret.
func (*GithubIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the GitHub integration secret is created on the cluster.
func (*GithubIntegration) PersistentFlags ¶
func (g *GithubIntegration) PersistentFlags(cmd *cobra.Command)
PersistentFlags sets the persistent flags for the GitHub integration. func (g *GithubIntegration) PersistentFlags(p *pflag.FlagSet) {
func (*GithubIntegration) Validate ¶
func (g *GithubIntegration) Validate() error
Validate checks if the required configuration is set.
type JenkinsIntegration ¶
type JenkinsIntegration struct {
// contains filtered or unexported fields
}
JenkinsIntegration represents the TSSC Jenkins integration.
func NewJenkinsIntegration ¶
func NewJenkinsIntegration( logger *slog.Logger, kube *k8s.Kube, ) *JenkinsIntegration
func (*JenkinsIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the Jenkins integration secret is created on the cluster.
func (*JenkinsIntegration) PersistentFlags ¶
func (j *JenkinsIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Jenkins integration.
func (*JenkinsIntegration) Validate ¶
func (j *JenkinsIntegration) Validate() error
Validate checks if the required configuration is set.
type NexusIntegration ¶
type NexusIntegration struct {
// contains filtered or unexported fields
}
NexusIntegration represents the TSSC Nexus integration.
func NewNexusIntegration ¶
func NewNexusIntegration( logger *slog.Logger, kube *k8s.Kube, ) *NexusIntegration
func (*NexusIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the Nexus integration secret is created on the cluster.
func (*NexusIntegration) PersistentFlags ¶
func (n *NexusIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Nexus integration.
func (*NexusIntegration) Validate ¶
func (n *NexusIntegration) Validate() error
Validate checks if the required configuration is set.
type QuayIntegration ¶
type QuayIntegration struct {
// contains filtered or unexported fields
}
QuayIntegration represents the TSSC Quay integration.
func NewQuayIntegration ¶
func NewQuayIntegration( logger *slog.Logger, kube *k8s.Kube, ) *QuayIntegration
func (*QuayIntegration) EnsureNamespace ¶
EnsureNamespace ensures the namespace needed for the Quay integration secret is created on the cluster.
func (*QuayIntegration) PersistentFlags ¶
func (q *QuayIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Quay integration.
func (*QuayIntegration) Validate ¶
func (q *QuayIntegration) Validate() error
Validate checks if the required configuration is set.
type TrustificationIntegration ¶
type TrustificationIntegration struct {
// contains filtered or unexported fields
}
TrustificationIntegration represents the TSSC Trustification integration.
func NewTrustificationIntegration ¶
func NewTrustificationIntegration( logger *slog.Logger, kube *k8s.Kube, ) *TrustificationIntegration
func (*TrustificationIntegration) Create ¶
Create creates the Trustification integration Kubernetes secret.
func (*TrustificationIntegration) EnsureNamespace ¶
func (i *TrustificationIntegration) EnsureNamespace( ctx context.Context, cfg *config.Config, ) error
EnsureNamespace ensures the namespace needed for the Trustification integration secret is created on the cluster.
func (*TrustificationIntegration) PersistentFlags ¶
func (i *TrustificationIntegration) PersistentFlags(c *cobra.Command)
PersistentFlags sets the persistent flags for the Trustification integration.
func (*TrustificationIntegration) Validate ¶
func (i *TrustificationIntegration) Validate() error
Validate checks if the required configuration is set.