Documentation ¶
Index ¶
- Variables
- func GenerateIdFromConfig(config string) string
- func New(version string) func() provider.Provider
- func NewSdwanSiteDataSource() datasource.DataSource
- func NewSdwanSiteResource() resource.Resource
- func ProviderParamDescription(desc, defaultValue, envName, jsonName string) string
- func TimeoutFrom(v types.String) time.Duration
- func TimeoutSchema(v string) schema.StringAttribute
- type SdwanDoSiteRequest
- type SdwanDoSiteResponse
- type SdwanProvider
- func (p *SdwanProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *SdwanProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *SdwanProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *SdwanProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *SdwanProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type SdwanProviderModel
- type SdwanPullSiteRequest
- type SdwanPullSiteResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var SiteNotFoundError = "Site not found"
Functions ¶
func GenerateIdFromConfig ¶
func NewSdwanSiteDataSource ¶
func NewSdwanSiteDataSource() datasource.DataSource
func NewSdwanSiteResource ¶
func TimeoutSchema ¶
func TimeoutSchema(v string) schema.StringAttribute
Types ¶
type SdwanDoSiteRequest ¶
type SdwanDoSiteRequest struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` Scope string `json:"scope,omitempty"` Config string `json:"config,omitempty"` }
SdwanDoSiteRequest is the JSON that Terraform sends for do_site and the config status URI.
type SdwanDoSiteResponse ¶
type SdwanDoSiteResponse struct { Errors []string `json:"errors"` Uuid string `json:"uuid"` IsDeployed bool `json:"is_deployed"` }
SdwanDoSiteResponse is the JSON sent back from both do_site and the config status URI.
type SdwanProvider ¶
type SdwanProvider struct {
// contains filtered or unexported fields
}
SdwanProvider is the provider implementation.
func (*SdwanProvider) Configure ¶
func (p *SdwanProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure prepares the provider.
func (*SdwanProvider) DataSources ¶
func (p *SdwanProvider) DataSources(_ context.Context) []func() datasource.DataSource
DataSources defines the data sources for this provider.
func (*SdwanProvider) Metadata ¶
func (p *SdwanProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider type name.
func (*SdwanProvider) Resources ¶
func (p *SdwanProvider) Resources(_ context.Context) []func() resource.Resource
Resources defines the data sources for this provider.
func (*SdwanProvider) Schema ¶
func (p *SdwanProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-level schema for configuration data.
type SdwanProviderModel ¶
type SdwanProviderModel struct { Host types.String `tfsdk:"host"` Port types.Int64 `tfsdk:"port"` Protocol types.String `tfsdk:"protocol"` ClientId types.String `tfsdk:"client_id"` ClientSecret types.String `tfsdk:"client_secret"` Scope types.String `tfsdk:"scope"` Logging types.String `tfsdk:"logging"` AuthFile types.String `tfsdk:"auth_file"` AuthUrl types.String `tfsdk:"auth_url"` }
SdwanProviderModel maps provider schema data to a Go type.
type SdwanPullSiteRequest ¶
type SdwanPullSiteRequest struct { Site string `json:"site_name"` ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` Scope string `json:"scope,omitempty"` }
SdwanPullSiteRequest is the JSON sent to pull_site.
type SdwanPullSiteResponse ¶
SdwanPullSiteResponse is the JSON sent back from pull_site.
Click to show internal directories.
Click to hide internal directories.