integrations

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Create

func (a *ACSIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the ACS integration Kubernetes secret.

func (*ACSIntegration) EnsureNamespace

func (a *ACSIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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

func (a *ArtifactoryIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the Artifactory integration Kubernetes secret.

func (*ArtifactoryIntegration) EnsureNamespace

func (a *ArtifactoryIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (g *AzureIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the Azure integration Kubernetes secret.

func (*AzureIntegration) EnsureNamespace

func (g *AzureIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (g *BitBucketIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the BitBucket integration Kubernetes secret.

func (*BitBucketIntegration) EnsureNamespace

func (g *BitBucketIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (g *GitLabIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the GitLab integration Kubernetes secret.

func (*GitLabIntegration) EnsureNamespace

func (g *GitLabIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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 NewGithubIntegration(
	logger *slog.Logger,
	kube *k8s.Kube,
	gitHubApp *githubapp.GitHubApp,
) *GithubIntegration

func (*GithubIntegration) Create

func (g *GithubIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
	name string,
) error

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

func (g *GithubIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (j *JenkinsIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the Jenkins integration Kubernetes secret.

func (*JenkinsIntegration) EnsureNamespace

func (j *JenkinsIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (n *NexusIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the Nexus integration Kubernetes secret.

func (*NexusIntegration) EnsureNamespace

func (n *NexusIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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) Create

func (q *QuayIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

Create creates the Quay integration Kubernetes secret.

func (*QuayIntegration) EnsureNamespace

func (q *QuayIntegration) EnsureNamespace(
	ctx context.Context,
	cfg *config.Config,
) error

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

func (i *TrustificationIntegration) Create(
	ctx context.Context,
	cfg *config.Config,
) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL