Documentation ¶
Index ¶
- func DurationAsText(d time.Duration) string
- func ListAsText(items []string) string
- type ActionResult
- type CreatedRepoValue
- type DisplayedResource
- type DisplayedResourceState
- type DoneMessage
- type EnvironmentDetails
- type GitHubValueKind
- type MessageTitle
- type MultilineMessage
- type OperationType
- type PreviewProvision
- type Resource
- type Show
- type ShowEnvironment
- type ShowService
- type UxItem
- type WarningMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationAsText ¶
DurationAsText provides a slightly nicer string representation of a duration when compared to default formatting in go, by spelling out the words hour, minute and second and providing some spacing and eliding the fractional component of the seconds part.
func ListAsText ¶
generates text from a list of strings, for example: ["foo"] => "foo" ["foo", "bar"] => "foo and bar" ["foo", "bar", "axe"] => "foo, bar and axe" ["foo", "bar", ..., ..., "axe"] => "foo, bar, ..., ... and axe"
Types ¶
type ActionResult ¶
func (*ActionResult) MarshalJSON ¶
func (ar *ActionResult) MarshalJSON() ([]byte, error)
func (*ActionResult) ToString ¶
func (ar *ActionResult) ToString(currentIndentation string) (result string)
type CreatedRepoValue ¶
type CreatedRepoValue struct { Name string Kind GitHubValueKind }
func (*CreatedRepoValue) MarshalJSON ¶
func (cr *CreatedRepoValue) MarshalJSON() ([]byte, error)
func (*CreatedRepoValue) ToString ¶
func (cr *CreatedRepoValue) ToString(currentIndentation string) string
type DisplayedResource ¶
type DisplayedResource struct { Type string Name string State DisplayedResourceState Duration time.Duration }
func (*DisplayedResource) MarshalJSON ¶
func (cr *DisplayedResource) MarshalJSON() ([]byte, error)
func (*DisplayedResource) ToString ¶
func (cr *DisplayedResource) ToString(currentIndentation string) string
type DisplayedResourceState ¶
type DisplayedResourceState string
const ( SucceededState DisplayedResourceState = "Succeeded" FailedState DisplayedResourceState = "Failed" )
type DoneMessage ¶
type DoneMessage struct {
Message string
}
func (*DoneMessage) MarshalJSON ¶
func (d *DoneMessage) MarshalJSON() ([]byte, error)
func (*DoneMessage) ToString ¶
func (d *DoneMessage) ToString(currentIndentation string) string
type EnvironmentDetails ¶
func (*EnvironmentDetails) MarshalJSON ¶
func (t *EnvironmentDetails) MarshalJSON() ([]byte, error)
func (*EnvironmentDetails) ToString ¶
func (t *EnvironmentDetails) ToString(currentIndentation string) string
type GitHubValueKind ¶
type GitHubValueKind string
const ( GitHubSecret GitHubValueKind = "secret" GitHubVariable GitHubValueKind = "variable" )
type MessageTitle ¶
func (*MessageTitle) MarshalJSON ¶
func (t *MessageTitle) MarshalJSON() ([]byte, error)
func (*MessageTitle) ToString ¶
func (t *MessageTitle) ToString(currentIndentation string) string
type MultilineMessage ¶
type MultilineMessage struct {
Lines []string
}
func (*MultilineMessage) MarshalJSON ¶
func (mm *MultilineMessage) MarshalJSON() ([]byte, error)
func (*MultilineMessage) ToString ¶
func (mm *MultilineMessage) ToString(currentIndentation string) string
type OperationType ¶
type OperationType string
OperationType defines the valid options for a resource change.
const ( OperationTypeCreate OperationType = "Create" OperationTypeDelete OperationType = "Delete" OperationTypeDeploy OperationType = "Deploy" OperationTypeIgnore OperationType = "Ignore" OperationTypeModify OperationType = "Modify" OperationTypeNoChange OperationType = "NoChange" OperationTypeUnsupported OperationType = "Unsupported" )
func (OperationType) String ¶
func (op OperationType) String() (displayName string)
type PreviewProvision ¶
type PreviewProvision struct {
Operations []*Resource
}
PreviewProvision defines a ux item for displaying a provision preview.
func (*PreviewProvision) MarshalJSON ¶
func (pp *PreviewProvision) MarshalJSON() ([]byte, error)
func (*PreviewProvision) ToString ¶
func (pp *PreviewProvision) ToString(currentIndentation string) string
type Resource ¶
type Resource struct { Operation OperationType Name string Type string }
Resource provides a basic structure for an Azure resource.
type Show ¶
type Show struct { AppName string Services []*ShowService Environments []*ShowEnvironment AzurePortalLink string }
func (*Show) MarshalJSON ¶
type ShowEnvironment ¶
type ShowService ¶
func (*ShowService) MarshalJSON ¶
func (s *ShowService) MarshalJSON() ([]byte, error)
func (*ShowService) ToString ¶
func (s *ShowService) ToString(currentIndentation string) string
type WarningMessage ¶
func (*WarningMessage) MarshalJSON ¶
func (t *WarningMessage) MarshalJSON() ([]byte, error)
func (*WarningMessage) ToString ¶
func (t *WarningMessage) ToString(currentIndentation string) string