Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtmosApiResponse ¶
type AtmosProAPIClient ¶
type AtmosProAPIClient struct { APIToken string BaseAPIEndpoint string BaseURL string HTTPClient *http.Client Logger *logger.Logger }
AtmosProAPIClient represents the client to interact with the AtmosPro API
func NewAtmosProAPIClient ¶
func NewAtmosProAPIClient(logger *logger.Logger, baseURL, baseAPIEndpoint, apiToken string) *AtmosProAPIClient
NewAtmosProAPIClient creates a new instance of AtmosProAPIClient
func NewAtmosProAPIClientFromEnv ¶
func NewAtmosProAPIClientFromEnv(logger *logger.Logger) (*AtmosProAPIClient, error)
NewAtmosProAPIClientFromEnv creates a new AtmosProAPIClient from environment variables
func (*AtmosProAPIClient) LockStack ¶
func (c *AtmosProAPIClient) LockStack(dto LockStackRequest) (LockStackResponse, error)
LockStack locks a specific stack
func (*AtmosProAPIClient) UnlockStack ¶
func (c *AtmosProAPIClient) UnlockStack(dto UnlockStackRequest) (UnlockStackResponse, error)
UnlockStack unlocks a specific stack
func (*AtmosProAPIClient) UploadAffectedStacks ¶
func (c *AtmosProAPIClient) UploadAffectedStacks(dto AffectedStacksUploadRequest) error
UploadAffectedStacks uploads information about affected stacks
type LockStackRequest ¶
type LockStackResponse ¶
type LockStackResponse struct { AtmosApiResponse Data struct { ID string `json:"id,omitempty"` WorkspaceId string `json:"workspaceId,omitempty"` Key string `json:"key,omitempty"` LockMessage string `json:"lockMessage,omitempty"` ExpiresAt time.Time `json:"expiresAt,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` DeletedAt time.Time `json:"deletedAt,omitempty"` } `json:"data"` }
type Property ¶
type Property struct { ID string `json:"id,omitempty"` LockID string `json:"lockId,omitempty"` Key string `json:"key,omitempty"` Value string `json:"value,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` DeletedAt time.Time `json:"deletedAt,omitempty"` }
type UnlockStackRequest ¶
type UnlockStackRequest struct {
Key string `json:"key"`
}
type UnlockStackResponse ¶
type UnlockStackResponse struct { AtmosApiResponse Data struct{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.