integrations

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntegrationSnippet

func GetIntegrationSnippet(intCfg IntegrationConfig, username string) (*string, error)

func GetIntegrationSnippetAsCloudInitWritableFile

func GetIntegrationSnippetAsCloudInitWritableFile(intCfg IntegrationConfig, username string) (*string, error)

If we add the snippet as part of a cloud init file the strategy would be create the file with write_files: i.e. write_files:

# Cirrus service setup
- content: |
    {{ .CirrusSnippet }} <----- 6 spaces

to do so we need to indent 6 spaces each line of the snippet

Types

type IntegrationConfig

type IntegrationConfig interface {
	GetUserDataValues() *UserDataValues
	GetSetupScriptTemplate() string
}

type UserDataValues

type UserDataValues struct {
	CliURL   string
	User     string
	Name     string
	Token    string
	Labels   string
	Port     string
	RepoURL  string
	Executor string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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