Documentation ¶
Index ¶
- Constants
- Variables
- type FSxWindowsFileServerResource
- func (fv *FSxWindowsFileServerResource) ApplyTransition(nextState resourcestatus.ResourceStatus) error
- func (fv *FSxWindowsFileServerResource) BuildContainerDependency(containerName string, satisfied apicontainerstatus.ContainerStatus, ...)
- func (fv *FSxWindowsFileServerResource) Cleanup() error
- func (fv *FSxWindowsFileServerResource) Create() error
- func (fv *FSxWindowsFileServerResource) DependOnTaskNetwork() bool
- func (fv *FSxWindowsFileServerResource) DesiredTerminal() bool
- func (fv *FSxWindowsFileServerResource) GetAppliedStatus() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) GetContainerDependencies(dependent resourcestatus.ResourceStatus) []apicontainer.ContainerDependency
- func (fv *FSxWindowsFileServerResource) GetCreatedAt() time.Time
- func (fv *FSxWindowsFileServerResource) GetDesiredStatus() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) GetKnownStatus() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) GetName() string
- func (fv *FSxWindowsFileServerResource) GetTerminalReason() string
- func (fv *FSxWindowsFileServerResource) Initialize(resourceFields *taskresource.ResourceFields, taskKnownStatus status.TaskStatus, ...)
- func (fv *FSxWindowsFileServerResource) KnownCreated() bool
- func (fv *FSxWindowsFileServerResource) MarshalJSON() ([]byte, error)
- func (fv *FSxWindowsFileServerResource) NextKnownState() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) SetAppliedStatus(status resourcestatus.ResourceStatus) bool
- func (fv *FSxWindowsFileServerResource) SetCreatedAt(createdAt time.Time)
- func (fv *FSxWindowsFileServerResource) SetDesiredStatus(status resourcestatus.ResourceStatus)
- func (fv *FSxWindowsFileServerResource) SetKnownStatus(status resourcestatus.ResourceStatus)
- func (fv *FSxWindowsFileServerResource) StatusString(status resourcestatus.ResourceStatus) string
- func (fv *FSxWindowsFileServerResource) SteadyState() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) TerminalStatus() resourcestatus.ResourceStatus
- func (fv *FSxWindowsFileServerResource) UnmarshalJSON(b []byte) error
- type FSxWindowsFileServerVolumeConfig
- type FSxWindowsFileServerVolumeStatus
Constants ¶
const (
// ResourceName is the name of the fsxwindowsfileserver resource
ResourceName = "fsxwindowsfileserver"
)
Variables ¶
var FSxWindowsFileServerVolumeStatusMap = map[string]FSxWindowsFileServerVolumeStatus{ "NONE": FSxWindowsFileServerVolumeStatusNone, "CREATED": FSxWindowsFileServerVolumeCreated, "REMOVED": FSxWindowsFileServerVolumeRemoved, }
Functions ¶
This section is empty.
Types ¶
type FSxWindowsFileServerResource ¶
type FSxWindowsFileServerResource struct { }
FSxWindowsFileServerResource represents a fsxwindowsfileserver resource
func NewFSxWindowsFileServerResource ¶
func NewFSxWindowsFileServerResource( taskARN, region string, name string, volumeType string, volumeConfig *FSxWindowsFileServerVolumeConfig, hostPath string, executionCredentialsID string, credentialsManager credentials.Manager, ssmClientCreator ssmfactory.SSMClientCreator, asmClientCreator asmfactory.ClientCreator, fsxClientCreator fsxfactory.FSxClientCreator) (*FSxWindowsFileServerResource, error)
NewFSxWindowsFileServerResource creates a new FSxWindowsFileServerResource object
func (*FSxWindowsFileServerResource) ApplyTransition ¶
func (fv *FSxWindowsFileServerResource) ApplyTransition(nextState resourcestatus.ResourceStatus) error
ApplyTransition calls the function required to move to the specified status
func (*FSxWindowsFileServerResource) BuildContainerDependency ¶
func (fv *FSxWindowsFileServerResource) BuildContainerDependency(containerName string, satisfied apicontainerstatus.ContainerStatus, dependent resourcestatus.ResourceStatus)
func (*FSxWindowsFileServerResource) Cleanup ¶
func (fv *FSxWindowsFileServerResource) Cleanup() error
Cleanup removes the fsxwindowsfileserver resources created for the task
func (*FSxWindowsFileServerResource) Create ¶
func (fv *FSxWindowsFileServerResource) Create() error
Create is used to create all the fsxwindowsfileserver resources for a given task
func (*FSxWindowsFileServerResource) DependOnTaskNetwork ¶
func (fv *FSxWindowsFileServerResource) DependOnTaskNetwork() bool
func (*FSxWindowsFileServerResource) DesiredTerminal ¶
func (fv *FSxWindowsFileServerResource) DesiredTerminal() bool
DesiredTerminal returns true if the fsxwindowsfileserver resource's desired status is REMOVED
func (*FSxWindowsFileServerResource) GetAppliedStatus ¶
func (fv *FSxWindowsFileServerResource) GetAppliedStatus() resourcestatus.ResourceStatus
GetAppliedStatus safely returns the currently applied status of the resource
func (*FSxWindowsFileServerResource) GetContainerDependencies ¶
func (fv *FSxWindowsFileServerResource) GetContainerDependencies(dependent resourcestatus.ResourceStatus) []apicontainer.ContainerDependency
func (*FSxWindowsFileServerResource) GetCreatedAt ¶
func (fv *FSxWindowsFileServerResource) GetCreatedAt() time.Time
GetCreatedAt sets the timestamp for resource's creation time
func (*FSxWindowsFileServerResource) GetDesiredStatus ¶
func (fv *FSxWindowsFileServerResource) GetDesiredStatus() resourcestatus.ResourceStatus
GetDesiredStatus safely returns the desired status of the task
func (*FSxWindowsFileServerResource) GetKnownStatus ¶
func (fv *FSxWindowsFileServerResource) GetKnownStatus() resourcestatus.ResourceStatus
GetKnownStatus safely returns the currently known status of the task
func (*FSxWindowsFileServerResource) GetName ¶
func (fv *FSxWindowsFileServerResource) GetName() string
GetName safely returns the name of the resource
func (*FSxWindowsFileServerResource) GetTerminalReason ¶
func (fv *FSxWindowsFileServerResource) GetTerminalReason() string
GetTerminalReason returns an error string to propagate up through to task state change messages
func (*FSxWindowsFileServerResource) Initialize ¶
func (fv *FSxWindowsFileServerResource) Initialize(resourceFields *taskresource.ResourceFields, taskKnownStatus status.TaskStatus, taskDesiredStatus status.TaskStatus)
func (*FSxWindowsFileServerResource) KnownCreated ¶
func (fv *FSxWindowsFileServerResource) KnownCreated() bool
KnownCreated returns true if the fsxwindowsfileserver resource's known status is CREATED
func (*FSxWindowsFileServerResource) MarshalJSON ¶
func (fv *FSxWindowsFileServerResource) MarshalJSON() ([]byte, error)
MarshalJSON serialises the FSxWindowsFileServerResourceJSON struct to JSON
func (*FSxWindowsFileServerResource) NextKnownState ¶
func (fv *FSxWindowsFileServerResource) NextKnownState() resourcestatus.ResourceStatus
NextKnownState returns the state that the resource should progress to based on its `KnownState`.
func (*FSxWindowsFileServerResource) SetAppliedStatus ¶
func (fv *FSxWindowsFileServerResource) SetAppliedStatus(status resourcestatus.ResourceStatus) bool
SetAppliedStatus sets the applied status of resource and returns whether the resource is already in a transition
func (*FSxWindowsFileServerResource) SetCreatedAt ¶
func (fv *FSxWindowsFileServerResource) SetCreatedAt(createdAt time.Time)
SetCreatedAt sets the timestamp for resource's creation time
func (*FSxWindowsFileServerResource) SetDesiredStatus ¶
func (fv *FSxWindowsFileServerResource) SetDesiredStatus(status resourcestatus.ResourceStatus)
SetDesiredStatus safely sets the desired status of the resource
func (*FSxWindowsFileServerResource) SetKnownStatus ¶
func (fv *FSxWindowsFileServerResource) SetKnownStatus(status resourcestatus.ResourceStatus)
SetKnownStatus safely sets the currently known status of the resource
func (*FSxWindowsFileServerResource) StatusString ¶
func (fv *FSxWindowsFileServerResource) StatusString(status resourcestatus.ResourceStatus) string
StatusString returns the string of the fsxwindowsfileserver resource status
func (*FSxWindowsFileServerResource) SteadyState ¶
func (fv *FSxWindowsFileServerResource) SteadyState() resourcestatus.ResourceStatus
SteadyState returns the transition state of the resource defined as "ready"
func (*FSxWindowsFileServerResource) TerminalStatus ¶
func (fv *FSxWindowsFileServerResource) TerminalStatus() resourcestatus.ResourceStatus
TerminalStatus returns the last transition state of fsxwindowsfileserver resource
func (*FSxWindowsFileServerResource) UnmarshalJSON ¶
func (fv *FSxWindowsFileServerResource) UnmarshalJSON(b []byte) error
UnmarshalJSON deserialises the raw JSON to a FSxWindowsFileServerResourceJSON struct
type FSxWindowsFileServerVolumeConfig ¶
type FSxWindowsFileServerVolumeConfig struct { }
FSxWindowsFileServerVolumeConfig represents fsxWindowsFileServer volume configuration.
func (*FSxWindowsFileServerVolumeConfig) Source ¶
func (cfg *FSxWindowsFileServerVolumeConfig) Source() string
Source returns the host path of the fsxwindowsfileserver resource which is used as the source of the volume mount
type FSxWindowsFileServerVolumeStatus ¶
type FSxWindowsFileServerVolumeStatus resourcestatus.ResourceStatus
FSxWindowsFileServerVolumeStatus defines resource statuses for fsxwindowsfileserver resource
const ( // FSxWindowsFileServerVolumeStatusNone is the zero state of a task resource FSxWindowsFileServerVolumeStatusNone FSxWindowsFileServerVolumeStatus = iota // FSxWindowsFileServerVolumeCreated represents a task resource which has been created FSxWindowsFileServerVolumeCreated // FSxWindowsFileServerVolumeRemoved represents a task resource which has been cleaned up FSxWindowsFileServerVolumeRemoved )
func (*FSxWindowsFileServerVolumeStatus) MarshalJSON ¶
func (fs *FSxWindowsFileServerVolumeStatus) MarshalJSON() ([]byte, error)
MarshalJSON overrides the logic for JSON-encoding the ResourceStatus type
func (FSxWindowsFileServerVolumeStatus) String ¶
func (fs FSxWindowsFileServerVolumeStatus) String() string
StatusString returns a human readable string representation of this object
func (*FSxWindowsFileServerVolumeStatus) UnmarshalJSON ¶
func (fs *FSxWindowsFileServerVolumeStatus) UnmarshalJSON(b []byte) error
UnmarshalJSON overrides the logic for parsing the JSON-encoded ResourceStatus data