Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewPipelineResource() resource.Resource
- func NewSecretResource() resource.Resource
- type Client
- func (c *Client) DeleteSecret(name string) error
- func (c *Client) DestroyPipeline(name string, namespace string, force bool) error
- func (c *Client) GetPipeline(namespace string, name string) (map[string]interface{}, error)
- func (c *Client) NewPipeline(namespace string, name string, repo string, branch string) error
- func (c *Client) NewSecret(name string, value string) error
- type OktetoError
- type OktetoLocation
- type OktetoResponse
- type PipelineResource
- func (r *PipelineResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PipelineResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PipelineResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PipelineResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PipelineResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PipelineResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PipelineResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PipelineResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ScaffoldingProvider
- func (p *ScaffoldingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ScaffoldingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ScaffoldingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ScaffoldingProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ScaffoldingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ScaffoldingProviderModel
- type SecretResource
- func (r *SecretResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SecretResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SecretResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SecretResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SecretResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SecretResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SecretResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SecretResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SecretResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPipelineResource ¶ added in v0.0.4
func NewSecretResource ¶
Types ¶
type Client ¶
type Client struct { Namespace string BaseURL *url.URL HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) DeleteSecret ¶
func (*Client) DestroyPipeline ¶ added in v0.0.4
func (*Client) GetPipeline ¶ added in v0.0.8
func (*Client) NewPipeline ¶ added in v0.0.4
type OktetoError ¶ added in v0.0.8
type OktetoError struct { Message string `json:"message"` Locations []OktetoLocation `json:"locations"` Path []string `json:"path"` }
type OktetoLocation ¶ added in v0.0.8
type OktetoResponse ¶ added in v0.0.8
type OktetoResponse struct { Data map[string]interface{} `json:"data"` Errors []OktetoError `json:"errors"` }
type PipelineResource ¶ added in v0.0.4
type PipelineResource struct {
// contains filtered or unexported fields
}
PipelineResource defines the resource implementation.
func (*PipelineResource) Configure ¶ added in v0.0.4
func (r *PipelineResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PipelineResource) Create ¶ added in v0.0.4
func (r *PipelineResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PipelineResource) Delete ¶ added in v0.0.4
func (r *PipelineResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PipelineResource) ImportState ¶ added in v0.0.4
func (r *PipelineResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PipelineResource) Metadata ¶ added in v0.0.4
func (r *PipelineResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PipelineResource) Read ¶ added in v0.0.4
func (r *PipelineResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PipelineResource) Schema ¶ added in v0.0.4
func (r *PipelineResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PipelineResource) Update ¶ added in v0.0.4
func (r *PipelineResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ScaffoldingProvider ¶
type ScaffoldingProvider struct {
// contains filtered or unexported fields
}
ScaffoldingProvider defines the provider implementation.
func (*ScaffoldingProvider) Configure ¶
func (p *ScaffoldingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ScaffoldingProvider) DataSources ¶
func (p *ScaffoldingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ScaffoldingProvider) Metadata ¶
func (p *ScaffoldingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ScaffoldingProvider) Resources ¶
func (p *ScaffoldingProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ScaffoldingProvider) Schema ¶
func (p *ScaffoldingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ScaffoldingProviderModel ¶
type ScaffoldingProviderModel struct { ApiToken types.String `tfsdk:"api_token"` Namespace types.String `tfsdk:"namespace"` }
ScaffoldingProviderModel describes the provider data model.
type SecretResource ¶
type SecretResource struct {
// contains filtered or unexported fields
}
SecretResource defines the resource implementation.
func (*SecretResource) Configure ¶
func (r *SecretResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SecretResource) Create ¶
func (r *SecretResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SecretResource) Delete ¶
func (r *SecretResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SecretResource) ImportState ¶
func (r *SecretResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SecretResource) Metadata ¶
func (r *SecretResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SecretResource) Read ¶
func (r *SecretResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SecretResource) Schema ¶
func (r *SecretResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SecretResource) Update ¶
func (r *SecretResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.