C# Class AwsSnapshotScheduler.Program

Afficher le fichier Open project: ronmichael/aws-snapshot-scheduler

Méthodes publiques

Свойство Type Description
options Options

Méthodes publiques

Méthode Description
Backup ( string name, string description, string volumeid, string volumename, string instancename, string expires ) : void
CheckForExpiredSnapshots ( ) : void

Check for any snapshots set to expire -- that have a tag key of "expires" with a value that is in the past.

CheckForScheduledSnapshots ( ) : void

Check for any volumes that have a snapshot scheduled based on the schedule in the snapshotSchedule tag key.

GetAfterTheHour ( string p, int def ) : int
GetDow ( string p, DayOfWeek def = DayOfWeek.Sunday ) : DayOfWeek
GetExpireHours ( string p, int def ) : int
GetInt ( string p, int def ) : int
GetTime ( string p, System.DateTime def = null ) : System.DateTime
ListVolumes ( ) : void

List all volumes found in region

Main ( string args ) : void
RegisterKeys ( string access, string secret ) : void

Private Methods

Méthode Description
SendMessageTimeout ( IntPtr hWnd, int Msg, int wParam, string lParam, int fuFlags, int uTimeout, int &lpdwResult ) : bool

Method Details

Backup() public static méthode

public static Backup ( string name, string description, string volumeid, string volumename, string instancename, string expires ) : void
name string
description string
volumeid string
volumename string
instancename string
expires string
Résultat void

CheckForExpiredSnapshots() public static méthode

Check for any snapshots set to expire -- that have a tag key of "expires" with a value that is in the past.
public static CheckForExpiredSnapshots ( ) : void
Résultat void

CheckForScheduledSnapshots() public static méthode

Check for any volumes that have a snapshot scheduled based on the schedule in the snapshotSchedule tag key.
public static CheckForScheduledSnapshots ( ) : void
Résultat void

GetAfterTheHour() public static méthode

public static GetAfterTheHour ( string p, int def ) : int
p string
def int
Résultat int

GetDow() public static méthode

public static GetDow ( string p, DayOfWeek def = DayOfWeek.Sunday ) : DayOfWeek
p string
def DayOfWeek
Résultat DayOfWeek

GetExpireHours() public static méthode

public static GetExpireHours ( string p, int def ) : int
p string
def int
Résultat int

GetInt() public static méthode

public static GetInt ( string p, int def ) : int
p string
def int
Résultat int

GetTime() public static méthode

public static GetTime ( string p, System.DateTime def = null ) : System.DateTime
p string
def System.DateTime
Résultat System.DateTime

ListVolumes() public static méthode

List all volumes found in region
public static ListVolumes ( ) : void
Résultat void

Main() public static méthode

public static Main ( string args ) : void
args string
Résultat void

RegisterKeys() public static méthode

public static RegisterKeys ( string access, string secret ) : void
access string
secret string
Résultat void

Property Details

options public_oe static_oe property

public static Options,AwsSnapshotScheduler options
Résultat Options