Created
July 9, 2015 15:30
-
-
Save deads2k/dba0992dbe98ea49c34e to your computer and use it in GitHub Desktop.
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
type MockDCClient struct{ | |
Rollback DeploymentConfig | |
} | |
func (c *MockDCClient) Rollback(rollback){ | |
return c.Rollback = rollback | |
} | |
type MockRCClient struct{ | |
RCs []*ReplicationController | |
} | |
func NewMockRCClient([]existingDeployment) MockRCClient{ | |
// fluff the rcs here | |
} | |
func (c *MockRCClient) List(){ | |
return c.RCs | |
} | |
func (c *MockRCClient) Get(){ | |
return nil, errors.New("not supported") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment