Documentation
¶
Index ¶
- func CreateNote(ac *client.AlpaconClient, noteRequest NoteCreateRequest) error
- func DeleteNote(ac *client.AlpaconClient, noteID string) error
- func GetNoteDetail(ac *client.AlpaconClient, noteID string) ([]byte, error)
- func UpdateNote(ac *client.AlpaconClient, noteID string) ([]byte, error)
- type NoteCreateRequest
- type NoteDetails
- type NoteResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNote ¶
func CreateNote(ac *client.AlpaconClient, noteRequest NoteCreateRequest) error
func DeleteNote ¶
func DeleteNote(ac *client.AlpaconClient, noteID string) error
func GetNoteDetail ¶ added in v1.2.0
func GetNoteDetail(ac *client.AlpaconClient, noteID string) ([]byte, error)
func UpdateNote ¶ added in v1.2.0
func UpdateNote(ac *client.AlpaconClient, noteID string) ([]byte, error)
Types ¶
type NoteCreateRequest ¶
type NoteDetails ¶
type NoteDetails struct {
ID string `json:"id"`
Server string `json:"server"`
Author string `json:"author"`
Content string `json:"content"`
Private bool `json:"private"`
}
NoteDetails is the display type for PrintTable.
func GetNoteList ¶
func GetNoteList(ac *client.AlpaconClient, serverName string, pageSize int) ([]NoteDetails, error)
type NoteResponse ¶ added in v1.2.0
type NoteResponse struct {
ID string `json:"id"`
Server server.ServerInfo `json:"server"`
Author iam.UserSummary `json:"author"`
Content string `json:"content"`
Private bool `json:"private"`
}
NoteResponse is the API response type where Server and Author are nested objects.
Click to show internal directories.
Click to hide internal directories.