jenkins

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.11.0

func New() provider.Provider

func Provider deprecated

func Provider() *schema.Provider

Provider creates a new Jenkins provider.

Deprecated: Use the provider-framework version of the provider for all new resources.

Types

type AzureServicePrincipalCredentials added in v0.10.0

type AzureServicePrincipalCredentials struct {
	XMLName     xml.Name                             `xml:"com.microsoft.azure.util.AzureCredentials"`
	ID          string                               `xml:"id"`
	Scope       string                               `xml:"scope"`
	Description string                               `xml:"description"`
	Data        AzureServicePrincipalCredentialsData `xml:"data"`
}

AzureServicePrincipalCredentials struct representing credential for storing Azure service credentials

type AzureServicePrincipalCredentialsData added in v0.10.0

type AzureServicePrincipalCredentialsData struct {
	SubscriptionId          string `xml:"subscriptionId"`
	ClientId                string `xml:"clientId"`
	ClientSecret            string `xml:"clientSecret"`
	CertificateId           string `xml:"certificateId"`
	Tenant                  string `xml:"tenant"`
	AzureEnvironmentName    string `xml:"azureEnvironmentName"`
	ServiceManagementURL    string `xml:"serviceManagementURL"`
	AuthenticationEndpoint  string `xml:"authenticationEndpoint"`
	ResourceManagerEndpoint string `xml:"resourceManagerEndpoint"`
	GraphEndpoint           string `xml:"graphEndpoint"`
}

type Config

type Config struct {
	ServerURL string
	CACert    io.Reader
	Username  string
	Password  string
}

Config is the set of parameters needed to configure the Jenkins provider.

type JenkinsProvider added in v0.11.0

type JenkinsProvider struct{}

func (*JenkinsProvider) Configure added in v0.11.0

Configure satisfies the provider.Provider interface for JenkinsProvider.

func (*JenkinsProvider) DataSources added in v0.11.0

func (p *JenkinsProvider) DataSources(ctx context.Context) []func() datasource.DataSource

DataSources satisfies the provider.Provider interface for JenkinsProvider.

func (*JenkinsProvider) Metadata added in v0.11.0

Metadata satisfies the provider.Provider interface for JenkinsProvider

func (*JenkinsProvider) Resources added in v0.11.0

func (p *JenkinsProvider) Resources(ctx context.Context) []func() resource.Resource

Resources satisfies the provider.Provider interface for JenkinsProvider.

func (*JenkinsProvider) Schema added in v0.11.0

Schema satisfies the provider.Provider interface for JenkinsProvider.

type JenkinsProviderModel added in v0.11.0

type JenkinsProviderModel struct {
	ServerURL types.String `tfsdk:"server_url"`
	CACert    types.String `tfsdk:"ca_cert"`
	Username  types.String `tfsdk:"username"`
	Password  types.String `tfsdk:"password"`
}

type VaultAppRoleCredentials added in v0.7.0

type VaultAppRoleCredentials struct {
	XMLName     xml.Name `xml:"com.datapipe.jenkins.vault.credentials.VaultAppRoleCredential"`
	ID          string   `xml:"id"`
	Scope       string   `xml:"scope"`
	Description string   `xml:"description"`
	Namespace   string   `xml:"namespace"`
	Path        string   `xml:"path"`
	RoleID      string   `xml:"roleId"`
	SecretID    string   `xml:"secretId"`
}

VaultAppRoleCredentials struct representing credential for storing Vault AppRole role id and secret id

type ViewDataSource added in v0.11.0

type ViewDataSource struct {
	// contains filtered or unexported fields
}

func (ViewDataSource) Configure added in v0.11.0

func (d ViewDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

Configure should register the client for the resource.

func (*ViewDataSource) Metadata added in v0.11.0

func (*ViewDataSource) Read added in v0.11.0

func (*ViewDataSource) Schema added in v0.11.0

type ViewDataSourceModel added in v0.11.0

type ViewDataSourceModel struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Folder      types.String `tfsdk:"folder"`
	Description types.String `tfsdk:"description"`
	URL         types.String `tfsdk:"url"`
}

type ViewResource added in v0.11.0

type ViewResource struct {
	// contains filtered or unexported fields
}

func (ViewResource) Configure added in v0.11.0

func (r ViewResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

Configure should register the client for the resource.

func (*ViewResource) Create added in v0.11.0

Create is called when the provider must create a new resource. Config and planned state values should be read from the CreateRequest and new state values set on the CreateResponse.

func (*ViewResource) Delete added in v0.11.0

Delete is called when the provider must delete the resource. Config values may be read from the DeleteRequest.

If execution completes without error, the framework will automatically call DeleteResponse.State.RemoveResource(), so it can be omitted from provider logic.

func (ViewResource) ImportState added in v0.11.0

func (r ViewResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

ImportState is called when performing import operations of existing resources.

func (*ViewResource) Metadata added in v0.11.0

Metadata should return the full name of the resource.

func (*ViewResource) Read added in v0.11.0

Read is called when the provider must read resource values in order to update state. Planned state values should be read from the ReadRequest and new state values set on the ReadResponse.

func (*ViewResource) Schema added in v0.11.0

Schema should return the schema for this resource.

func (*ViewResource) Update added in v0.11.0

Update is called to update the state of the resource. Config, planned state, and prior state values should be read from the UpdateRequest and new state values set on the UpdateResponse.

type ViewResourceModel added in v0.11.0

type ViewResourceModel struct {
	ID               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	Folder           types.String `tfsdk:"folder"`
	Description      types.String `tfsdk:"description"`
	AssignedProjects types.List   `tfsdk:"assigned_projects"`
	URL              types.String `tfsdk:"url"`
}

Jump to

Keyboard shortcuts

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