integrations

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 3 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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