Documentation ¶
Index ¶
- Constants
- func ArrayEqual(a, b []string) bool
- func ArrayEqualElements(a, b []string) bool
- func GetAppAndTagPairFromName(name string) (string, string)
- func GetAppNamespace(appName string) string
- func GetComponentSecretName(componentame string) string
- func GetDeploymentName(appName, env, tag string) string
- func GetEnvironmentNamespace(appName, environment string) string
- func GetGithubCloneURLFromRepo(repo string) string
- func GetGithubRepositoryURLFromCloneURL(cloneURL string) string
- func GetImagePath(containerRegistry, appName, componentName, imageTag string) string
- func GetKubernetesClient() (kubernetes.Interface, radixclient.Interface, monitoring.Interface)
- func GetRadixApplication(filename string) (*v1.RadixApplication, error)
- func GetRadixDeploy(filename string) (*v1.RadixDeployment, error)
- func GetRadixRegistrationFromFile(file string) (*v1.RadixRegistration, error)
- func RandString(length int) string
- func RandStringSeed(length int, src rand.Source) string
- func RandStringStrSeed(length int, src string) string
- type ApplicationBuilder
- type ApplicationBuilderStruct
- func (ap *ApplicationBuilderStruct) BuildRA() *v1.RadixApplication
- func (ap *ApplicationBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
- func (ap *ApplicationBuilderStruct) WithAppName(appName string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponent(component RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env string, component string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithEnvironment(environment, buildFrom string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithEnvironmentNoBranch(environment string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithPrivateImageRegistry(server, username, email string) ApplicationBuilder
- func (ap *ApplicationBuilderStruct) WithRadixRegistration(registrationBuilder RegistrationBuilder) ApplicationBuilder
- type DeployComponentBuilder
- type DeploymentBuilder
- type DeploymentBuilderStruct
- func (db *DeploymentBuilderStruct) BuildRD() *v1.RadixDeployment
- func (db *DeploymentBuilderStruct) GetApplicationBuilder() ApplicationBuilder
- func (db *DeploymentBuilderStruct) WithActiveFrom(activeFrom time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithActiveTo(activeTo time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithAppName(appName string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithComponent(component DeployComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithComponents(components ...DeployComponentBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithCondition(condition v1.RadixDeployCondition) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithCreated(created time.Time) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithDeploymentName(name string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithEmptyStatus() DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithEnvironment(environment string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithImageTag(imageTag string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithLabel(label, value string) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithRadixDeployment(radixDeployment *v1.RadixDeployment) DeploymentBuilder
- func (db *DeploymentBuilderStruct) WithUID(uid types.UID) DeploymentBuilder
- type JobBuilder
- type JobBuilderStruct
- func (jb *JobBuilderStruct) BuildRJ() *v1.RadixJob
- func (jb *JobBuilderStruct) GetApplicationBuilder() ApplicationBuilder
- func (jb *JobBuilderStruct) WithAppName(name string) JobBuilder
- func (jb *JobBuilderStruct) WithBranch(branch string) JobBuilder
- func (jb *JobBuilderStruct) WithCreated(created time.Time) JobBuilder
- func (jb *JobBuilderStruct) WithDeploymentName(deploymentName string) JobBuilder
- func (jb *JobBuilderStruct) WithEmptyStatus() JobBuilder
- func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
- func (jb *JobBuilderStruct) WithPipeline(pipeline v1.RadixPipelineType) JobBuilder
- func (jb *JobBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatus(jobStatus JobStatusBuilder) JobBuilder
- func (jb *JobBuilderStruct) WithStatusOnAnnotation(jobStatus JobStatusBuilder) JobBuilder
- type JobStatusBuilder
- type JobStepBuilder
- type RadixApplicationComponentBuilder
- type RadixEnvironmentConfigBuilder
- type RegistrationBuilder
- type RegistrationBuilderStruct
- func (rb *RegistrationBuilderStruct) BuildRR() *v1.RadixRegistration
- func (rb *RegistrationBuilderStruct) WithAdGroups(adGroups []string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithCloneURL(cloneURL string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithName(name string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithPrivateKey(privateKey string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithPublicKey(publicKey string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithRepository(repository string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithSharedSecret(sharedSecret string) RegistrationBuilder
- func (rb *RegistrationBuilderStruct) WithUID(uid types.UID) RegistrationBuilder
Constants ¶
const AppNamespaceEnvName = "app"
AppNamespaceEnvName Name of environment for app namespace
Variables ¶
This section is empty.
Functions ¶
func ArrayEqual ¶
ArrayEqual tells whether a and b contain the same elements at the same index. A nil argument is equivalent to an empty slice.
func ArrayEqualElements ¶
ArrayEqualElements tells whether a and b contain the same elements. Elements does not need to be in same index A nil argument is equivalent to an empty slice.
func GetAppAndTagPairFromName ¶
GetAppAndTagPairFromName Reverse engineer deployment name
func GetAppNamespace ¶
GetAppNamespace Function to get namespace from app name
func GetComponentSecretName ¶
GetComponentSecretName Gets unique name of the component secret
func GetDeploymentName ¶
GetDeploymentName Function to get deployment name
func GetEnvironmentNamespace ¶
GetEnvironmentNamespace Function to get namespace from app name and environment
func GetGithubCloneURLFromRepo ¶
GetGithubCloneURLFromRepo Takes a https repo string as input and converts to a git clone url
func GetGithubRepositoryURLFromCloneURL ¶
GetGithubRepositoryURLFromCloneURL Takes git clone url as input and converts to a https repo string
func GetImagePath ¶
GetImagePath Returns a container image path given container registry, app, component and tag
func GetKubernetesClient ¶
func GetKubernetesClient() (kubernetes.Interface, radixclient.Interface, monitoring.Interface)
GetKubernetesClient Gets clients to talk to the API
func GetRadixApplication ¶
func GetRadixApplication(filename string) (*v1.RadixApplication, error)
GetRadixApplication Reads radix config from file
func GetRadixDeploy ¶
func GetRadixDeploy(filename string) (*v1.RadixDeployment, error)
GetRadixDeploy Reads radix deployment from file
func GetRadixRegistrationFromFile ¶
func GetRadixRegistrationFromFile(file string) (*v1.RadixRegistration, error)
GetRadixRegistrationFromFile Reads radix registration from file
func RandString ¶
RandString Returns a random string of given length
func RandStringSeed ¶
RandStringSeed Returns a random string of given length from seed
func RandStringStrSeed ¶
RandStringStrSeed Returns a random string of given length from seed
Types ¶
type ApplicationBuilder ¶
type ApplicationBuilder interface { WithRadixRegistration(RegistrationBuilder) ApplicationBuilder WithAppName(string) ApplicationBuilder WithEnvironment(string, string) ApplicationBuilder WithEnvironmentNoBranch(string) ApplicationBuilder WithComponent(RadixApplicationComponentBuilder) ApplicationBuilder WithComponents(...RadixApplicationComponentBuilder) ApplicationBuilder WithDNSAppAlias(string, string) ApplicationBuilder WithDNSExternalAlias(string, string, string) ApplicationBuilder WithPrivateImageRegistry(string, string, string) ApplicationBuilder GetRegistrationBuilder() RegistrationBuilder BuildRA() *v1.RadixApplication }
ApplicationBuilder Handles construction of RA
func ARadixApplication ¶
func ARadixApplication() ApplicationBuilder
ARadixApplication Constructor for application builder containing test data
func NewRadixApplicationBuilder ¶
func NewRadixApplicationBuilder() ApplicationBuilder
NewRadixApplicationBuilder Constructor for config builder
type ApplicationBuilderStruct ¶
type ApplicationBuilderStruct struct {
// contains filtered or unexported fields
}
ApplicationBuilderStruct Instance variables
func (*ApplicationBuilderStruct) BuildRA ¶
func (ap *ApplicationBuilderStruct) BuildRA() *v1.RadixApplication
BuildRA Builds RA
func (*ApplicationBuilderStruct) GetRegistrationBuilder ¶
func (ap *ApplicationBuilderStruct) GetRegistrationBuilder() RegistrationBuilder
GetRegistrationBuilder Gets associated registration builder
func (*ApplicationBuilderStruct) WithAppName ¶
func (ap *ApplicationBuilderStruct) WithAppName(appName string) ApplicationBuilder
WithAppName Sets app name
func (*ApplicationBuilderStruct) WithComponent ¶
func (ap *ApplicationBuilderStruct) WithComponent(component RadixApplicationComponentBuilder) ApplicationBuilder
WithComponent Appends application component to list of existing components
func (*ApplicationBuilderStruct) WithComponents ¶
func (ap *ApplicationBuilderStruct) WithComponents(components ...RadixApplicationComponentBuilder) ApplicationBuilder
WithComponents Sets application components to application
func (*ApplicationBuilderStruct) WithDNSAppAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSAppAlias(env string, component string) ApplicationBuilder
WithDNSAppAlias Sets env + component to be the app alias
func (*ApplicationBuilderStruct) WithDNSExternalAlias ¶
func (ap *ApplicationBuilderStruct) WithDNSExternalAlias(alias, env, component string) ApplicationBuilder
WithDNSExternalAlias Sets env + component to the the external alias
func (*ApplicationBuilderStruct) WithEnvironment ¶
func (ap *ApplicationBuilderStruct) WithEnvironment(environment, buildFrom string) ApplicationBuilder
WithEnvironment Appends to environment-build list
func (*ApplicationBuilderStruct) WithEnvironmentNoBranch ¶
func (ap *ApplicationBuilderStruct) WithEnvironmentNoBranch(environment string) ApplicationBuilder
WithEnvironmentNoBranch Appends environment with no branch mapping to config
func (*ApplicationBuilderStruct) WithPrivateImageRegistry ¶ added in v1.0.1
func (ap *ApplicationBuilderStruct) WithPrivateImageRegistry(server, username, email string) ApplicationBuilder
WithPrivateImageRegistry adds a private image hub to application
func (*ApplicationBuilderStruct) WithRadixRegistration ¶
func (ap *ApplicationBuilderStruct) WithRadixRegistration(registrationBuilder RegistrationBuilder) ApplicationBuilder
WithRadixRegistration Associates this builder with a registration builder
type DeployComponentBuilder ¶
type DeployComponentBuilder interface { WithName(string) DeployComponentBuilder WithImage(string) DeployComponentBuilder WithPort(string, int32) DeployComponentBuilder WithEnvironmentVariable(string, string) DeployComponentBuilder WithEnvironmentVariables(map[string]string) DeployComponentBuilder // Deprecated: For backwards comptibility WithPublic is still supported, new code should use WithPublicPort instead WithPublic(bool) DeployComponentBuilder WithPublicPort(string) DeployComponentBuilder WithMonitoring(bool) DeployComponentBuilder WithReplicas(*int) DeployComponentBuilder WithResourceRequestsOnly(map[string]string) DeployComponentBuilder WithResource(map[string]string, map[string]string) DeployComponentBuilder WithIngressConfiguration(...string) DeployComponentBuilder WithSecrets([]string) DeployComponentBuilder WithDNSAppAlias(bool) DeployComponentBuilder WithDNSExternalAlias(string) DeployComponentBuilder BuildComponent() v1.RadixDeployComponent }
DeployComponentBuilder Handles construction of RD component
func NewDeployComponentBuilder ¶
func NewDeployComponentBuilder() DeployComponentBuilder
NewDeployComponentBuilder Constructor for component builder
type DeploymentBuilder ¶
type DeploymentBuilder interface { WithRadixApplication(ApplicationBuilder) DeploymentBuilder WithRadixDeployment(*v1.RadixDeployment) DeploymentBuilder WithDeploymentName(string) DeploymentBuilder WithImageTag(string) DeploymentBuilder WithAppName(string) DeploymentBuilder WithLabel(label, value string) DeploymentBuilder WithEnvironment(string) DeploymentBuilder WithCreated(time.Time) DeploymentBuilder WithUID(types.UID) DeploymentBuilder WithCondition(v1.RadixDeployCondition) DeploymentBuilder WithActiveFrom(time.Time) DeploymentBuilder WithActiveTo(time.Time) DeploymentBuilder WithEmptyStatus() DeploymentBuilder WithComponent(DeployComponentBuilder) DeploymentBuilder WithComponents(...DeployComponentBuilder) DeploymentBuilder GetApplicationBuilder() ApplicationBuilder BuildRD() *v1.RadixDeployment }
DeploymentBuilder Handles construction of RD
func ARadixDeployment ¶
func ARadixDeployment() DeploymentBuilder
ARadixDeployment Constructor for deployment builder containing test data
func NewDeploymentBuilder ¶
func NewDeploymentBuilder() DeploymentBuilder
NewDeploymentBuilder Constructor for deployment builder
type DeploymentBuilderStruct ¶
type DeploymentBuilderStruct struct { DeploymentName string AppName string Labels map[string]string ImageTag string Environment string Created time.Time Condition v1.RadixDeployCondition ActiveFrom metav1.Time ActiveTo metav1.Time ResourceVersion string UID types.UID // contains filtered or unexported fields }
DeploymentBuilderStruct Holds instance variables
func (*DeploymentBuilderStruct) BuildRD ¶
func (db *DeploymentBuilderStruct) BuildRD() *v1.RadixDeployment
BuildRD Builds RD structure based on set variables
func (*DeploymentBuilderStruct) GetApplicationBuilder ¶
func (db *DeploymentBuilderStruct) GetApplicationBuilder() ApplicationBuilder
GetApplicationBuilder Obtains the builder for the corresponding RA, if exists (used for testing)
func (*DeploymentBuilderStruct) WithActiveFrom ¶
func (db *DeploymentBuilderStruct) WithActiveFrom(activeFrom time.Time) DeploymentBuilder
WithActiveFrom Sets active from
func (*DeploymentBuilderStruct) WithActiveTo ¶
func (db *DeploymentBuilderStruct) WithActiveTo(activeTo time.Time) DeploymentBuilder
WithActiveTo Sets active to
func (*DeploymentBuilderStruct) WithAppName ¶
func (db *DeploymentBuilderStruct) WithAppName(appName string) DeploymentBuilder
WithAppName Sets app name
func (*DeploymentBuilderStruct) WithComponent ¶
func (db *DeploymentBuilderStruct) WithComponent(component DeployComponentBuilder) DeploymentBuilder
WithComponent Appends component to list of components
func (*DeploymentBuilderStruct) WithComponents ¶
func (db *DeploymentBuilderStruct) WithComponents(components ...DeployComponentBuilder) DeploymentBuilder
WithComponents Sets list of components
func (*DeploymentBuilderStruct) WithCondition ¶
func (db *DeploymentBuilderStruct) WithCondition(condition v1.RadixDeployCondition) DeploymentBuilder
WithCondition Sets the condition of the deployment
func (*DeploymentBuilderStruct) WithCreated ¶
func (db *DeploymentBuilderStruct) WithCreated(created time.Time) DeploymentBuilder
WithCreated Sets timestamp
func (*DeploymentBuilderStruct) WithDeploymentName ¶
func (db *DeploymentBuilderStruct) WithDeploymentName(name string) DeploymentBuilder
WithDeploymentName Sets name of the deployment
func (*DeploymentBuilderStruct) WithEmptyStatus ¶
func (db *DeploymentBuilderStruct) WithEmptyStatus() DeploymentBuilder
WithEmptyStatus Indicates that the RD has no reconciled status
func (*DeploymentBuilderStruct) WithEnvironment ¶
func (db *DeploymentBuilderStruct) WithEnvironment(environment string) DeploymentBuilder
WithEnvironment Sets environment name
func (*DeploymentBuilderStruct) WithImageTag ¶
func (db *DeploymentBuilderStruct) WithImageTag(imageTag string) DeploymentBuilder
WithImageTag Sets deployment tag to be appended to name
func (*DeploymentBuilderStruct) WithLabel ¶
func (db *DeploymentBuilderStruct) WithLabel(label, value string) DeploymentBuilder
WithLabel Appends label
func (*DeploymentBuilderStruct) WithRadixApplication ¶
func (db *DeploymentBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) DeploymentBuilder
WithRadixApplication Links to RA builder
func (*DeploymentBuilderStruct) WithRadixDeployment ¶
func (db *DeploymentBuilderStruct) WithRadixDeployment(radixDeployment *v1.RadixDeployment) DeploymentBuilder
WithRadixDeployment Reverse engineers RD
func (*DeploymentBuilderStruct) WithUID ¶
func (db *DeploymentBuilderStruct) WithUID(uid types.UID) DeploymentBuilder
WithUID Sets UUID
type JobBuilder ¶
type JobBuilder interface { WithRadixApplication(ApplicationBuilder) JobBuilder WithJobName(string) JobBuilder WithAppName(string) JobBuilder WithPipeline(v1.RadixPipelineType) JobBuilder WithBranch(string) JobBuilder WithDeploymentName(string) JobBuilder WithStatusOnAnnotation(JobStatusBuilder) JobBuilder WithEmptyStatus() JobBuilder WithStatus(JobStatusBuilder) JobBuilder WithCreated(time.Time) JobBuilder GetApplicationBuilder() ApplicationBuilder BuildRJ() *v1.RadixJob }
JobBuilder Handles construction of RJ
func ARadixBuildDeployJob ¶
func ARadixBuildDeployJob() JobBuilder
ARadixBuildDeployJob Constructor for radix job builder containing test data
func AStartedBuildDeployJob ¶
func AStartedBuildDeployJob() JobBuilder
AStartedBuildDeployJob Constructor for radix job builder containing test data
type JobBuilderStruct ¶
type JobBuilderStruct struct {
// contains filtered or unexported fields
}
JobBuilderStruct Holds instance variables
func (*JobBuilderStruct) BuildRJ ¶
func (jb *JobBuilderStruct) BuildRJ() *v1.RadixJob
BuildRJ Builds RJ structure based on set variables
func (*JobBuilderStruct) GetApplicationBuilder ¶
func (jb *JobBuilderStruct) GetApplicationBuilder() ApplicationBuilder
GetApplicationBuilder Obtains the builder for the corresponding RA, if exists (used for testing)
func (*JobBuilderStruct) WithAppName ¶
func (jb *JobBuilderStruct) WithAppName(name string) JobBuilder
WithAppName Sets name of the application
func (*JobBuilderStruct) WithBranch ¶
func (jb *JobBuilderStruct) WithBranch(branch string) JobBuilder
WithBranch Sets branch
func (*JobBuilderStruct) WithCreated ¶
func (jb *JobBuilderStruct) WithCreated(created time.Time) JobBuilder
WithCreated Sets timestamp
func (*JobBuilderStruct) WithDeploymentName ¶
func (jb *JobBuilderStruct) WithDeploymentName(deploymentName string) JobBuilder
WithDeploymentName Sets deployment name
func (*JobBuilderStruct) WithEmptyStatus ¶
func (jb *JobBuilderStruct) WithEmptyStatus() JobBuilder
WithEmptyStatus Indicates that the RJ has no reconciled status
func (*JobBuilderStruct) WithJobName ¶
func (jb *JobBuilderStruct) WithJobName(name string) JobBuilder
WithJobName Sets name of the radix job
func (*JobBuilderStruct) WithPipeline ¶
func (jb *JobBuilderStruct) WithPipeline(pipeline v1.RadixPipelineType) JobBuilder
WithPipeline Sets pipeline
func (*JobBuilderStruct) WithRadixApplication ¶
func (jb *JobBuilderStruct) WithRadixApplication(applicationBuilder ApplicationBuilder) JobBuilder
WithRadixApplication Links to RA builder
func (*JobBuilderStruct) WithStatus ¶
func (jb *JobBuilderStruct) WithStatus(jobStatus JobStatusBuilder) JobBuilder
WithStatus Sets status on job
func (*JobBuilderStruct) WithStatusOnAnnotation ¶
func (jb *JobBuilderStruct) WithStatusOnAnnotation(jobStatus JobStatusBuilder) JobBuilder
WithStatusOnAnnotation Emulates velero plugin
type JobStatusBuilder ¶
type JobStatusBuilder interface { WithCondition(v1.RadixJobCondition) JobStatusBuilder WithSteps(...JobStepBuilder) JobStatusBuilder Build() v1.RadixJobStatus }
JobStatusBuilder Handles construction of job status
func AStartedJobStatus ¶
func AStartedJobStatus() JobStatusBuilder
AStartedJobStatus Constructor build-app
func NewJobStatusBuilder ¶
func NewJobStatusBuilder() JobStatusBuilder
NewJobStatusBuilder Constructor for job status builder
type JobStepBuilder ¶
type JobStepBuilder interface { WithCondition(v1.RadixJobCondition) JobStepBuilder WithName(string) JobStepBuilder WithStarted(time.Time) JobStepBuilder WithEnded(time.Time) JobStepBuilder Build() v1.RadixJobStep }
JobStepBuilder Handles construction of job status step
func ACloneConfigStep ¶
func ACloneConfigStep() JobStepBuilder
ACloneConfigStep Constructor clone-config
func ARadixPipelineStep ¶
func ARadixPipelineStep() JobStepBuilder
ARadixPipelineStep Constructor radix-pipeline
func NewJobStepBuilder ¶
func NewJobStepBuilder() JobStepBuilder
NewJobStepBuilder Constructor for job step builder
type RadixApplicationComponentBuilder ¶
type RadixApplicationComponentBuilder interface { WithName(string) RadixApplicationComponentBuilder // Deprecated: For backwards comptibility WithPublic is still supported, new code should use WithPublicPort instead WithPublic(bool) RadixApplicationComponentBuilder WithPublicPort(string) RadixApplicationComponentBuilder WithPort(string, int32) RadixApplicationComponentBuilder WithSecrets(...string) RadixApplicationComponentBuilder WithIngressConfiguration(...string) RadixApplicationComponentBuilder WithEnvironmentConfig(RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder WithEnvironmentConfigs(...RadixEnvironmentConfigBuilder) RadixApplicationComponentBuilder BuildComponent() v1.RadixComponent }
RadixApplicationComponentBuilder Handles construction of RA component
func AnApplicationComponent ¶
func AnApplicationComponent() RadixApplicationComponentBuilder
AnApplicationComponent Constructor for component builder builder containing test data
func NewApplicationComponentBuilder ¶
func NewApplicationComponentBuilder() RadixApplicationComponentBuilder
NewApplicationComponentBuilder Constructor for component builder
type RadixEnvironmentConfigBuilder ¶
type RadixEnvironmentConfigBuilder interface { WithEnvironment(string) RadixEnvironmentConfigBuilder WithReplicas(*int) RadixEnvironmentConfigBuilder WithEnvironmentVariable(string, string) RadixEnvironmentConfigBuilder WithResource(map[string]string, map[string]string) RadixEnvironmentConfigBuilder BuildEnvironmentConfig() v1.RadixEnvironmentConfig }
RadixEnvironmentConfigBuilder Handles construction of RA component environment
func AnEnvironmentConfig ¶
func AnEnvironmentConfig() RadixEnvironmentConfigBuilder
AnEnvironmentConfig Constructor for component environment builder containing test data
func NewComponentEnvironmentBuilder ¶
func NewComponentEnvironmentBuilder() RadixEnvironmentConfigBuilder
NewComponentEnvironmentBuilder Constructor for component environment builder
type RegistrationBuilder ¶
type RegistrationBuilder interface { WithUID(types.UID) RegistrationBuilder WithName(name string) RegistrationBuilder WithRepository(string) RegistrationBuilder WithAdGroups([]string) RegistrationBuilder WithPublicKey(string) RegistrationBuilder WithPrivateKey(string) RegistrationBuilder WithCloneURL(string) RegistrationBuilder WithRadixRegistration(*v1.RadixRegistration) RegistrationBuilder BuildRR() *v1.RadixRegistration }
RegistrationBuilder Handles construction of RR or applicationRegistation
func ARadixRegistration ¶
func ARadixRegistration() RegistrationBuilder
ARadixRegistration Constructor for registration builder containing test data
func NewRegistrationBuilder ¶
func NewRegistrationBuilder() RegistrationBuilder
NewRegistrationBuilder Constructor for registration builder
type RegistrationBuilderStruct ¶
type RegistrationBuilderStruct struct {
// contains filtered or unexported fields
}
RegistrationBuilderStruct Instance variables
func (*RegistrationBuilderStruct) BuildRR ¶
func (rb *RegistrationBuilderStruct) BuildRR() *v1.RadixRegistration
BuildRR Builds the radix registration
func (*RegistrationBuilderStruct) WithAdGroups ¶
func (rb *RegistrationBuilderStruct) WithAdGroups(adGroups []string) RegistrationBuilder
WithAdGroups Sets ad group
func (*RegistrationBuilderStruct) WithCloneURL ¶
func (rb *RegistrationBuilderStruct) WithCloneURL(cloneURL string) RegistrationBuilder
WithCloneURL Sets clone url
func (*RegistrationBuilderStruct) WithName ¶
func (rb *RegistrationBuilderStruct) WithName(name string) RegistrationBuilder
WithName Sets name
func (*RegistrationBuilderStruct) WithPrivateKey ¶
func (rb *RegistrationBuilderStruct) WithPrivateKey(privateKey string) RegistrationBuilder
WithPrivateKey Sets private key
func (*RegistrationBuilderStruct) WithPublicKey ¶
func (rb *RegistrationBuilderStruct) WithPublicKey(publicKey string) RegistrationBuilder
WithPublicKey Sets public key
func (*RegistrationBuilderStruct) WithRadixRegistration ¶
func (rb *RegistrationBuilderStruct) WithRadixRegistration(radixRegistration *v1.RadixRegistration) RegistrationBuilder
WithRadixRegistration Re-enginers a builder from a registration
func (*RegistrationBuilderStruct) WithRepository ¶
func (rb *RegistrationBuilderStruct) WithRepository(repository string) RegistrationBuilder
WithRepository Sets repository
func (*RegistrationBuilderStruct) WithSharedSecret ¶
func (rb *RegistrationBuilderStruct) WithSharedSecret(sharedSecret string) RegistrationBuilder
WithSharedSecret Sets shared secret
func (*RegistrationBuilderStruct) WithUID ¶
func (rb *RegistrationBuilderStruct) WithUID(uid types.UID) RegistrationBuilder
WithUID Sets UID