Documentation
¶
Index ¶
- func New() provider.Provider
- func Provider() *schema.Providerdeprecated
- type AzureServicePrincipalCredentials
- type AzureServicePrincipalCredentialsData
- type Config
- type JenkinsProvider
- func (p *JenkinsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *JenkinsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *JenkinsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *JenkinsProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *JenkinsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type JenkinsProviderModel
- type VaultAppRoleCredentials
- type ViewDataSource
- func (d ViewDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ViewDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ViewDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ViewDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ViewDataSourceModel
- type ViewResource
- func (r ViewResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ViewResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ViewResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r ViewResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ViewResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ViewResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ViewResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ViewResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ViewResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 JenkinsProvider ¶ added in v0.11.0
type JenkinsProvider struct{}
func (*JenkinsProvider) Configure ¶ added in v0.11.0
func (p *JenkinsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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
func (p *JenkinsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
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
func (p *JenkinsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema satisfies the provider.Provider interface for JenkinsProvider.
type JenkinsProviderModel ¶ added in v0.11.0
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 (d *ViewDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ViewDataSource) Read ¶ added in v0.11.0
func (d *ViewDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ViewDataSource) Schema ¶ added in v0.11.0
func (d *ViewDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ViewDataSourceModel ¶ added in v0.11.0
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
func (r *ViewResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
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
func (r *ViewResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
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
func (r *ViewResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata should return the full name of the resource.
func (*ViewResource) Read ¶ added in v0.11.0
func (r *ViewResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
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
func (r *ViewResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema should return the schema for this resource.
func (*ViewResource) Update ¶ added in v0.11.0
func (r *ViewResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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
Source Files
¶
- config.go
- data_source.go
- data_source_jenkins_credential_aws.go
- data_source_jenkins_credential_username.go
- data_source_jenkins_credential_vault_approle.go
- data_source_jenkins_folder.go
- data_source_jenkins_job.go
- data_source_jenkins_view.go
- folder.go
- provider.go
- provider_framework.go
- resource.go
- resource_jenkins_credential_aws.go
- resource_jenkins_credential_azure_service_principal.go
- resource_jenkins_credential_secret_file.go
- resource_jenkins_credential_secret_text.go
- resource_jenkins_credential_ssh.go
- resource_jenkins_credential_username.go
- resource_jenkins_credential_vault_approle.go
- resource_jenkins_folder.go
- resource_jenkins_job.go
- resource_jenkins_view.go
- util.go
- validations.go