Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewStoryResource() resource.Resource
- type Client
- type StoryImportRequest
- type StoryResponse
- type TinesProvider
- func (p *TinesProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *TinesProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *TinesProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *TinesProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *TinesProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoryResource ¶
NewStoryResource is a helper function to simplify the provider implementation.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - Tines API client.
func (*Client) DeleteStory ¶
func (*Client) ImportStory ¶
ImportStory - Imports a story.
type StoryImportRequest ¶
type StoryResponse ¶
type StoryResponse struct { ID int64 `json:"id"` Name string `json:"name"` UserID int64 `json:"user_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Description string `json:"description"` GUID string `json:"guid"` KeepEventsFor int64 `json:"keep_events_for"` Disabled bool `json:"disabled"` Priority bool `json:"priority"` TeamID int64 `json:"team_id"` FolderID int64 `json:"folder_id"` }
StoryResponse - Response from Tines API when importing a story.
type TinesProvider ¶
type TinesProvider struct {
// contains filtered or unexported fields
}
TinesProvider defines the provider implementation.
func (*TinesProvider) Configure ¶
func (p *TinesProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure initializes the Tines client.
func (*TinesProvider) DataSources ¶
func (p *TinesProvider) DataSources(ctx context.Context) []func() datasource.DataSource
DataSources returns the available data sources (currently none).
func (*TinesProvider) Metadata ¶
func (p *TinesProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*TinesProvider) Resources ¶
func (p *TinesProvider) Resources(ctx context.Context) []func() resource.Resource
Resources returns the available Story Resource.
func (*TinesProvider) Schema ¶
func (p *TinesProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema describes the schema for Tines provider.
Click to show internal directories.
Click to hide internal directories.