casc

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareForCheckNewSource added in v0.0.8

func PrepareForCheckNewSource(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string) (
	response *http.Response)

PrepareForCheckNewSource only for test

func PrepareForReplaceSource added in v0.0.8

func PrepareForReplaceSource(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string) (
	response *http.Response)

PrepareForReplaceSource only for test

func PrepareForSASCApply

func PrepareForSASCApply(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string)

PrepareForSASCApply only for test

func PrepareForSASCExport

func PrepareForSASCExport(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string) (
	response *http.Response)

PrepareForSASCExport only for test

func PrepareForSASCExportWithCode

func PrepareForSASCExportWithCode(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string, code int)

PrepareForSASCExportWithCode only for test

func PrepareForSASCReload

func PrepareForSASCReload(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string)

PrepareForSASCReload only for test

func PrepareForSASCSchema

func PrepareForSASCSchema(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string) (
	response *http.Response)

PrepareForSASCSchema only for test

func PrepareForSASCSchemaWithCode

func PrepareForSASCSchemaWithCode(roundTripper *mhttp.MockRoundTripper, rootURL, user, password string, code int)

PrepareForSASCSchemaWithCode only for test

Types

type Manager

type Manager struct {
	core.JenkinsCore
}

Manager is the client of configuration as code

func (*Manager) Apply

func (c *Manager) Apply() (err error)

Apply applies the config of configuration-as-code

func (*Manager) CheckNewSource added in v0.0.8

func (c *Manager) CheckNewSource(source string) (err error)

CheckNewSource checks the new source of CasC

func (*Manager) Export

func (c *Manager) Export() (config string, err error)

Export exports the config of configuration-as-code

func (*Manager) Reload

func (c *Manager) Reload() (err error)

Reload reloads the config of configuration-as-code

func (*Manager) Replace added in v0.0.8

func (c *Manager) Replace(source string) (err error)

Replace replaces the new source

func (*Manager) Schema

func (c *Manager) Schema() (schema string, err error)

Schema get the schema of configuration-as-code

Jump to

Keyboard shortcuts

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