Last active
June 20, 2017 08:49
-
-
Save yamamoto-febc/052677a9f74d194e6f08f11c983e0fcf to your computer and use it in GitHub Desktop.
Dockerのインフラ管理ツールキット「InfraKit」メモ ref: http://qiita.com/yamamoto-febc/items/2cd260ba956e1a3da78e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Plugin defines custom behavior for what runs on instances. | |
type Plugin interface { | |
// バリデーション | |
Validate(flavorProperties json.RawMessage) (AllocationMethod, error) | |
// 各インスタンスへ固有の設定(フレーバー)を投入 | |
Prepare(flavorProperties json.RawMessage, spec instance.Spec) (instance.Spec, error) | |
// ヘルスチェック | |
Healthy(inst instance.Description) (bool, error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment