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
}
Click to show internal directories.
Click to hide internal directories.