space

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: MIT Imports: 11 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 {
	Key         string
	Name        string
	Description string
	Public      bool
}

CommandData contains all command related data

type Option

type Option func(*Space)

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 Response

type Response struct {
	ID          int    `json:"id"`
	Key         string `json:"key"`
	Name        string `json:"name"`
	Description struct {
		Plain struct {
			Value          string `json:"value"`
			Representation string `json:"representation"`
		} `json:"plain"`
	} `json:"description"`

	Links struct {
		Collection string `json:"collection"`
		Base       string `json:"base"`
		Context    string `json:"context"`
		Self       string `json:"self"`
	} `json:"_links"`
	// contains filtered or unexported fields
}

Response the response payload

type Space

type Space struct {
	// contains filtered or unexported fields
}

Space command to create git hooks

func NewSpace

func NewSpace(options ...Option) *Space

NewSpace with the given options.

func (*Space) Run

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

Run the command

func (*Space) StartCommandSurvey

func (s *Space) StartCommandSurvey() error

StartCommandSurvey collect all required informations from user

Jump to

Keyboard shortcuts

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