Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Last active June 20, 2017 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamamoto-febc/052677a9f74d194e6f08f11c983e0fcf to your computer and use it in GitHub Desktop.
Save yamamoto-febc/052677a9f74d194e6f08f11c983e0fcf to your computer and use it in GitHub Desktop.
Dockerのインフラ管理ツールキット「InfraKit」メモ ref: http://qiita.com/yamamoto-febc/items/2cd260ba956e1a3da78e
// 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