page

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandData

type CommandData struct {
	AncestorID string
	Title      string
	Type       string
	SpaceKey   string
}

CommandData contains all command related data

type Option

type Option func(*Page)

Option function.

func WithClient

func WithClient(client *confluence.Client) Option

WithClient option.

func WithCommandData

func WithCommandData(cd *CommandData) Option

WithCommandData option.

func WithEndpoint

func WithEndpoint(location string) Option

WithEndpoint option.

type Page

type Page struct {
	CommandData *CommandData
	// contains filtered or unexported fields
}

Page command to create git hooks

func NewPage

func NewPage(options ...Option) *Page

NewPage with the given options.

func (*Page) Run

func (s *Page) Run() (*Response, error)

Run the command

type Response

type Response struct {
	ID     string `json:"id"`
	Type   string `json:"type"`
	Status string `json:"status"`
}

Response the response payload

Jump to

Keyboard shortcuts

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