fsxwindowsfileserver

package
v1.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResourceName is the name of the fsxwindowsfileserver resource
	ResourceName = "fsxwindowsfileserver"
)

Variables

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

GetAppliedStatus safely returns the currently applied status of the resource

func (*FSxWindowsFileServerResource) GetContainerDependencies

func (*FSxWindowsFileServerResource) GetCreatedAt

func (fv *FSxWindowsFileServerResource) GetCreatedAt() time.Time

GetCreatedAt sets the timestamp for resource's creation time

func (*FSxWindowsFileServerResource) GetDesiredStatus

GetDesiredStatus safely returns the desired status of the task

func (*FSxWindowsFileServerResource) GetKnownStatus

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

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

StatusString returns the string of the fsxwindowsfileserver resource status

func (*FSxWindowsFileServerResource) SteadyState

SteadyState returns the transition state of the resource defined as "ready"

func (*FSxWindowsFileServerResource) TerminalStatus

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL