Documentation
¶
Index ¶
- type Client
- func (cl *Client) CreateProject(p *CreateProjectParameters) (*models.Project, error)
- func (cl *Client) CreateSection(p *CreateSectionParameters) (*models.Section, error)
- func (cl *Client) DeleteProject(id string) error
- func (cl *Client) DeleteSection(id string) error
- func (cl *Client) GetProject(id string) (*models.Project, error)
- func (cl *Client) GetSection(id string) (*models.Section, error)
- func (cl *Client) ListProjects() (models.Projects, error)
- func (cl *Client) ListSections(p *ListSectionsParameters) (models.Sections, error)
- func (cl *Client) UpdateProject(id string, p *UpdateProjectParameters) (*models.Project, error)
- func (cl *Client) UpdateSection(id string, p *UpdateSectionParameters) (*models.Section, error)
- type Config
- type CreateProjectParameters
- type CreateSectionParameters
- type ListSectionsParameters
- type UpdateProjectParameters
- type UpdateSectionParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateProject ¶
func (cl *Client) CreateProject(p *CreateProjectParameters) (*models.Project, error)
func (*Client) CreateSection ¶ added in v0.4.0
func (cl *Client) CreateSection(p *CreateSectionParameters) (*models.Section, error)
func (*Client) DeleteProject ¶
func (*Client) DeleteSection ¶ added in v0.4.0
func (*Client) GetSection ¶ added in v0.4.0
func (*Client) ListSections ¶ added in v0.4.0
func (cl *Client) ListSections(p *ListSectionsParameters) (models.Sections, error)
func (*Client) UpdateProject ¶
func (*Client) UpdateSection ¶ added in v0.4.0
type CreateProjectParameters ¶ added in v0.4.0
type CreateSectionParameters ¶ added in v0.4.0
type ListSectionsParameters ¶ added in v0.4.0
type ListSectionsParameters struct {
ProjectID *string `url:"project_id,omitempty"`
}
type UpdateProjectParameters ¶ added in v0.4.0
type UpdateSectionParameters ¶ added in v0.4.0
type UpdateSectionParameters struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.