provider

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssID            = "id"
	IssProjectID     = "project_id"
	IssTrackerID     = "tracker_id"
	IssSubject       = "subject"
	IssDescription   = "description"
	IssParentIssueID = "parent_issue_id"
	IssPriorityID    = "priority_id"
	IssCategoryID    = "category_id"
	IssCreatedOn     = "created_on"
	IssUpdatedOn     = "updated_on"
)
View Source
const (
	IssCatID        = "id"
	IssCatProjectID = "project_id"
	IssCatName      = "name"
)
View Source
const (
	PrjID             = "id"
	PrjName           = "name"
	PrjIdentifier     = "identifier"
	PrjDescription    = "description"
	PrjHomepage       = "homepage"
	PrjIsPublic       = "is_public"
	PrjParentID       = "parent_id"
	PrjInheritMembers = "inherit_members"
	PrjCreatedOn      = "created_on"
	PrjUpdatedOn      = "updated_on"
)
View Source
const (
	VerID          = "id"
	VerProjectID   = "project_id"
	VerName        = "name"
	VerDescription = "description"
	VerStatus      = "status"
	VerDueDate     = "due_date"
	VerCreatedOn   = "created_on"
	VerUpdatedOn   = "updated_on"
)

Variables

This section is empty.

Functions

func IssueCategoryFromState added in v0.2.0

func IssueCategoryFromState(d *schema.ResourceData) *redmine.IssueCategory

func IssueCategorySetToState added in v0.2.0

func IssueCategorySetToState(IssueCategory *redmine.IssueCategory, d *schema.ResourceData) diag.Diagnostics

func Provider

func Provider() *schema.Provider

func VersionFromState added in v0.2.0

func VersionFromState(d *schema.ResourceData) *redmine.Version

func VersionSetToState added in v0.2.0

func VersionSetToState(Version *redmine.Version, d *schema.ResourceData) diag.Diagnostics

Types

type IssueCategoryClient added in v0.2.0

type IssueCategoryClient interface {
	// CreateIssueCategory creates an IssueCategory.
	CreateIssueCategory(ctx context.Context, IssueCategory *redmine.IssueCategory) (*redmine.IssueCategory, error)
	// ReadIssueCategory reads an IssueCategory identified by the id. The id must not be empty string or "0".
	ReadIssueCategory(ctx context.Context, id string) (*redmine.IssueCategory, error)
	// UpdateIssueCategory updates an existing IssueCategory.
	UpdateIssueCategory(ctx context.Context, IssueCategory *redmine.IssueCategory) (*redmine.IssueCategory, error)
	// DeleteIssueCategory deletes an IssueCategory identified by the id. The id must not be empty string or "0".
	DeleteIssueCategory(ctx context.Context, id string) error
}

IssueCategoryClient provides methods for reading and modifying Redmine IssueCategories.

type IssueClient

type IssueClient interface {
	// CreateIssue creates an issue.
	CreateIssue(ctx context.Context, issue *redmine.Issue) (*redmine.Issue, error)
	// ReadIssue reads an issue identified by the id. The id must not be empty string or "0".
	ReadIssue(ctx context.Context, id string) (*redmine.Issue, error)
	// UpdateIssue updates an existing issue.
	UpdateIssue(ctx context.Context, issue *redmine.Issue) (*redmine.Issue, error)
	// DeleteIssue deletes an issue identified by the id. The id must not be empty string or "0".
	DeleteIssue(ctx context.Context, id string) error
}

IssueClient provides methods for reading and modifying Redmine issues.

type ProjectClient

type ProjectClient interface {
	// CreateProject creates a project.
	CreateProject(ctx context.Context, project *redmine.Project) (*redmine.Project, error)
	// ReadProject reads a project identified by the id. The id must not be empty string or "0".
	ReadProject(ctx context.Context, id string) (*redmine.Project, error)
	// UpdateProject updates an existing project.
	UpdateProject(ctx context.Context, project *redmine.Project) (*redmine.Project, error)
	// DeleteProject deletes a project identified by the id. The id must not be empty string or "0".
	DeleteProject(ctx context.Context, id string) error
}

ProjectClient provides methods for reading and modifying Redmine projects.

type VersionClient added in v0.2.0

type VersionClient interface {
	// CreateVersion creates an Version.
	CreateVersion(ctx context.Context, Version *redmine.Version) (*redmine.Version, error)
	// ReadVersion reads an Version identified by the id. The id must not be empty string or "0".
	ReadVersion(ctx context.Context, id string) (*redmine.Version, error)
	// UpdateVersion updates an existing Version.
	UpdateVersion(ctx context.Context, Version *redmine.Version) (*redmine.Version, error)
	// DeleteVersion deletes an Version identified by the id. The id must not be empty string or "0".
	DeleteVersion(ctx context.Context, id string) error
}

VersionClient provides methods for reading and modifying Redmine versions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL