Documentation ¶
Index ¶
- Constants
- func MkRepoReadDataSource(pack packer.PackFunc, construct repository.Constructor) schema.ReadContextFunc
- func NewRepositoriesDataSource() datasource.DataSource
- type RepositoriesAPIModel
- type RepositoriesDataSource
- func (d *RepositoriesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *RepositoriesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *RepositoriesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RepositoriesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RepositoriesDataSourceModel
Constants ¶
View Source
const EndPoint = "artifactory/api/repositories/"
Variables ¶
This section is empty.
Functions ¶
func MkRepoReadDataSource ¶
func MkRepoReadDataSource(pack packer.PackFunc, construct repository.Constructor) schema.ReadContextFunc
func NewRepositoriesDataSource ¶
func NewRepositoriesDataSource() datasource.DataSource
Types ¶
type RepositoriesAPIModel ¶
type RepositoriesDataSource ¶
type RepositoriesDataSource struct {
ProviderData util.ProviderMetadata
}
func (*RepositoriesDataSource) Configure ¶
func (d *RepositoriesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*RepositoriesDataSource) Metadata ¶
func (d *RepositoriesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RepositoriesDataSource) Read ¶
func (d *RepositoriesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RepositoriesDataSource) Schema ¶
func (d *RepositoriesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RepositoriesDataSourceModel ¶
type RepositoriesDataSourceModel struct { RepositoryType types.String `tfsdk:"repository_type"` PackageType types.String `tfsdk:"package_type"` ProjectKey types.String `tfsdk:"project_key"` Repos types.Set `tfsdk:"repos"` }
func (*RepositoriesDataSourceModel) FromAPIModel ¶
func (m *RepositoriesDataSourceModel) FromAPIModel(ctx context.Context, data []RepositoriesAPIModel) diag.Diagnostics
Click to show internal directories.
Click to hide internal directories.