Documentation
¶
Index ¶
- func Parse()
- type CapabilityEntry
- type CapabilityInfo
- type MTOptions
- func (mt MTOptions) GetToken() string
- func (mt MTOptions) MustGetToken() string
- func (mt MTOptions) Mytoken() string
- func (mt MTOptions) MytokenEnv() string
- func (mt MTOptions) MytokenFile() string
- func (mt MTOptions) MytokenPrompt() bool
- func (mt MTOptions) SSH() string
- func (MTOptions) SetMytokenFile(f string)
- type SSHCalendarIDRequest
- type SSHCalendarSubscriptionRequest
- type SSHCalendarUpdateRequest
- type SSHNotificationAddTokenRequest
- type SSHNotificationManagementCodeRequest
- type SSHNotificationUpdateRequest
- type SSHTagCreateRequest
- type SSHTagDeleteRequest
- type SSHTagUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CapabilityEntry ¶ added in v0.7.0
type CapabilityEntry struct {
ReadWriteCapability CapabilityInfo `json:"read_write_capability"`
ReadOnlyCapability *CapabilityInfo `json:"read_only_capability,omitempty"`
Children []CapabilityEntry `json:"children,omitempty"`
}
type CapabilityInfo ¶ added in v0.7.0
type MTOptions ¶ added in v0.6.0
type MTOptions struct{}
func (MTOptions) MustGetToken ¶ added in v0.6.0
func (MTOptions) MytokenEnv ¶ added in v0.6.0
func (MTOptions) MytokenFile ¶ added in v0.6.0
func (MTOptions) MytokenPrompt ¶ added in v0.6.0
func (MTOptions) SetMytokenFile ¶ added in v0.6.0
type SSHCalendarIDRequest ¶ added in v0.7.0
type SSHCalendarIDRequest struct {
CalendarID string `json:"calendar_id"`
}
SSHCalendarIDRequest is used for calendar operations that only need the calendar ID
type SSHCalendarSubscriptionRequest ¶ added in v0.7.0
type SSHCalendarSubscriptionRequest struct {
CalendarID string `json:"calendar_id"`
api.AddMytokenToCalendarRequest
}
SSHCalendarSubscriptionRequest is used for subscribing/unsubscribing to calendars
type SSHCalendarUpdateRequest ¶ added in v0.7.0
type SSHCalendarUpdateRequest struct {
CalendarID string `json:"calendar_id"`
api.CreateCalendarRequest
}
SSHCalendarUpdateRequest is the request body for updating a calendar via SSH
type SSHNotificationAddTokenRequest ¶ added in v0.7.0
type SSHNotificationAddTokenRequest struct {
ManagementCode string `json:"management_code"`
api.NotificationAddTokenRequest
}
SSHNotificationAddTokenRequest is used for adding a token to a notification via SSH
type SSHNotificationManagementCodeRequest ¶ added in v0.7.0
type SSHNotificationManagementCodeRequest struct {
ManagementCode string `json:"management_code"`
}
SSHNotificationManagementCodeRequest is used for notification operations that only need the management code
type SSHNotificationUpdateRequest ¶ added in v0.7.0
type SSHNotificationUpdateRequest struct {
ManagementCode string `json:"management_code"`
api.NotificationUpdateRequest
}
SSHNotificationUpdateRequest is the request body for updating a notification via SSH
type SSHTagCreateRequest ¶ added in v0.7.0
SSHTagCreateRequest is the request body for creating a tag via SSH
type SSHTagDeleteRequest ¶ added in v0.7.0
SSHTagDeleteRequest is used for deleting a tag
Click to show internal directories.
Click to hide internal directories.